Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.55ms] Passed 4 tests
An overview of server-side resources used by FF Block Gist Embed
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.88 ▲3.33 |
Dashboard /wp-admin | 3.34 ▼0.00 | 47.07 ▼13.20 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 45.67 ▼2.44 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.01 ▼21.87 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.78 ▲3.40 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for FF Block Gist Embed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.25 ▼0.33 | 1.65 ▲0.07 | 41.28 ▲0.41 |
Dashboard /wp-admin | 2,198 ▲17 | 5.61 ▲0.02 | 84.43 ▼15.23 | 41.89 ▼2.20 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.04 ▲0.00 | 35.69 ▼0.10 | 33.70 ▼1.64 |
Add New Post /wp-admin/post-new.php | 6,369 ▲4,832 | 27.74 ▲9.27 | 826.60 ▲194.65 | 60.40 ▼10.78 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.33 ▲0.17 | 95.96 ▼0.69 | 42.86 ▼2.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ff-block-gist-embed/api-fetch/get-gist-files/index.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ff-block-gist-embed/src/render.php:82
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: raw, embed, github, gist, code...
ff-block-gist-embed/plugin.php 92% from 13 tests
The principal PHP file in "FF Block Gist Embed" v. 1.0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ff-block-gist-embed.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin213 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 69 | 266 | 210 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 50.00% |
▷ Protected methods | 3 | 18.75% |
▷ Private methods | 5 | 31.25% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin