Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/kopa-forceful-toolkit/kopa-widgets.php+302
Methods with the same name as their class will not be constructors in a future version of PHP; KopaAwesomeWeatherWidget has a deprecated constructor
Server metrics [RAM: ▼1.62MB] [CPU: ▼52.62ms] Passed 4 tests
A check of server-side resources used by Kopa Forcefull Toolkit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.37 ▼1.09 | 5.85 ▼34.83 |
Dashboard /wp-admin | 2.39 ▼0.91 | 8.26 ▼38.32 |
Posts /wp-admin/edit.php | 2.39 ▼0.97 | 6.39 ▼44.71 |
Add New Post /wp-admin/post-new.php | 2.39 ▼3.50 | 6.60 ▼92.60 |
Media Library /wp-admin/upload.php | 2.39 ▼0.84 | 7.06 ▼30.14 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_kopa_awesome_weather_widget |
widget_awesome_weather_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Kopa Forcefull Toolkit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.78 ▼0.79 | 9.25 ▲7.64 | 42.87 ▼1.59 |
Dashboard /wp-admin | 2,198 ▲18 | 5.65 ▲0.02 | 86.64 ▼8.93 | 43.75 ▲1.63 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.00 ▼0.01 | 35.78 ▼5.90 | 35.76 ▼3.35 |
Add New Post /wp-admin/post-new.php | 6,240 ▲4,703 | 25.95 ▲7.73 | 946.02 ▲301.65 | 62.37 ▼5.19 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.20 ▼0.09 | 105.74 ▲4.69 | 46.10 ▲1.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/kopa-forceful-toolkit/kopa-widgets.php+302
Methods with the same name as their class will not be constructors in a future version of PHP; KopaAwesomeWeatherWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- widget_kopa_awesome_weather_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_awesome_weather_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 5× 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/kopa-forceful-toolkit/kopa-post-rating.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-forceful-toolkit/kopa-widgets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-forceful-toolkit/kopa-forceful-toolkit.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-forceful-toolkit/kopa-shortcodes.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-forceful-toolkit/kopa-enqueue.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (http://kopatheme.com/demo/forcefull/light/wp-content/uploads/2014/05/weather.png), #2 (http://kopatheme.com/demo/forcefull/light/wp-content/uploads/2014/05/shortcode.png), #3 (http://kopatheme.com/demo/forcefull/light/wp-content/uploads/2014/05/rating.png)
kopa-forceful-toolkit/kopa-forceful-toolkit.php Passed 13 tests
The entry point to "Kopa Forcefull Toolkit" version 1.0.0 is a PHP file that has certain tags in its header comment area
115 characters long description:
A specific plugin use in Forceful Theme to generate shortcodes, add specific widgets and allow user rate the posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,129 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 357 | 145 | 1,413 |
JavaScript | 23 | 61 | 32 | 603 |
CSS | 3 | 28 | 9 | 113 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 9 | 52.94% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
20 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/shortcodes/icons/contact_form.png | 0.67KB | 0.72KB | 0.00% |
js/shortcodes/icons/two_third.png | 0.30KB | 0.22KB | ▼ 26.40% |
js/shortcodes/icons/audio.png | 0.96KB | 1.17KB | 0.00% |
js/shortcodes/icons/youtube.png | 0.52KB | 0.32KB | ▼ 38.18% |
js/shortcodes/icons/toggle.png | 0.45KB | 0.41KB | ▼ 8.26% |