Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/code-school-badges/wpcodeschool-badges.php+85
Methods with the same name as their class will not be constructors in a future version of PHP; Wpcodeschool_Badges_Widget has a deprecated constructor
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.56ms] Passed 4 tests
Analyzing server-side resources used by Code School Badges
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.23 ▼1.74 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.22 ▼6.21 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.30 ▲2.30 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.97 ▼9.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.12 ▼0.52 |
Code School Badges /wp-admin/options-general.php?page=wpcodeschool-badges | 3.28 | 29.32 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
widget_wpcodeschool_badges_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Code School Badges: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲183 | 13.66 ▼0.99 | 8.11 ▲6.04 | 43.46 ▼3.41 |
Dashboard /wp-admin | 2,212 ▲24 | 5.91 ▲1.04 | 100.45 ▼20.37 | 39.05 ▼13.29 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.04 | 36.38 ▼0.12 | 33.91 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,538 ▼4 | 23.04 ▲4.77 | 644.27 ▲50.25 | 50.63 ▲4.16 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.22 ▲0.05 | 97.54 ▼0.57 | 48.42 ▲3.45 |
Code School Badges /wp-admin/options-general.php?page=wpcodeschool-badges | 840 | 2.06 | 24.70 | 24.74 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_wpcodeschool_badges_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/code-school-badges/inc/front-end-shortcode.php
- > /wp-content/plugins/code-school-badges/inc/front-end.php
- 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: after_widget in wp-content/plugins/code-school-badges/inc/front-end.php on line 18
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/code-school-badges/inc/front-end-shortcode.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/code-school-badges/inc/front-end-shortcode.php on line 5
- > PHP Warning
array_reverse() expects parameter 1 to be array, null given in wp-content/plugins/code-school-badges/inc/front-end-shortcode.php on line 5
- > PHP Notice
Undefined variable: before_widget in wp-content/plugins/code-school-badges/inc/front-end-shortcode.php on line 2
- > PHP Notice
Undefined variable: after_title in wp-content/plugins/code-school-badges/inc/front-end-shortcode.php on line 3
- > PHP Warning
array_reverse() expects parameter 1 to be array, null given in wp-content/plugins/code-school-badges/inc/front-end.php on line 5
- > PHP Notice
Undefined variable: before_title in wp-content/plugins/code-school-badges/inc/front-end.php on line 3
- > PHP Notice
Undefined variable: after_title in wp-content/plugins/code-school-badges/inc/front-end.php on line 3
- > PHP Notice
Undefined variable: after_widget in wp-content/plugins/code-school-badges/inc/front-end-shortcode.php on line 18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: api, badges, code school, shortcode, codeschool...
code-school-badges/wpcodeschool-badges.php 92% from 13 tests
The main file in "Code School Badges" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("code-school-badges.php" instead of "wpcodeschool-badges.php")
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 detected422 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 111 | 67 | 335 |
CSS | 1 | 5 | 14 | 81 |
JavaScript | 1 | 5 | 8 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 1.46MB with 1.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 142.20KB | 36.02KB | ▼ 74.67% |
assets/screenshot-2.png | 142.99KB | 36.20KB | ▼ 74.69% |
assets/screenshot-6.png | 419.94KB | 100.82KB | ▼ 75.99% |
assets/screenshot-5.png | 225.54KB | 61.35KB | ▼ 72.80% |
assets/screenshot-3.png | 356.96KB | 86.31KB | ▼ 75.82% |