Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.54ms] Passed 4 tests
Analyzing server-side resources used by CampusPress Code Check
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.77 ▼2.87 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.09 ▲0.50 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.46 ▲1.50 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 97.84 ▼7.32 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.86 ▼4.48 |
Theme Check /wp-admin/themes.php?page=campus-themecheck | 4.02 | 39.52 |
Plugin Check /wp-admin/plugins.php?page=campus-plugincheck | 3.69 | 34.99 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CampusPress Code Check
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.28 ▼1.40 | 1.88 ▲0.15 | 43.30 ▼1.97 |
Dashboard /wp-admin | 2,217 ▲26 | 4.81 ▼0.21 | 112.56 ▼2.90 | 42.81 ▲0.36 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.06 ▲0.01 | 41.92 ▲0.66 | 38.17 ▼5.21 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 22.79 ▲4.57 | 718.24 ▲47.53 | 56.04 ▲1.72 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.20 ▲0.10 | 117.44 ▼3.64 | 50.64 ▼2.85 |
Theme Check /wp-admin/themes.php?page=campus-themecheck | 809 | 2.03 | 27.56 | 33.97 |
Plugin Check /wp-admin/plugins.php?page=campus-plugincheck | 818 | 2.02 | 26.96 | 30.04 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 51× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'CampusPress_themecheck' not found in wp-content/plugins/campuspress-theme-check/checks/deprecated.php:3
- > PHP Fatal error
Uncaught Error: Interface 'CampusPress_themecheck' not found in wp-content/plugins/campuspress-theme-check/checks/postthumb.php:3
- > PHP Fatal error
Uncaught Error: Interface 'CampusPress_themecheck' not found in wp-content/plugins/campuspress-theme-check/checks/customs.php:3
- > PHP Fatal error
Uncaught Error: Interface 'CampusPress_themecheck' not found in wp-content/plugins/campuspress-theme-check/checks/dep_recommend.php:3
- > PHP Fatal error
Uncaught Error: Interface 'CampusPress_themecheck' not found in wp-content/plugins/campuspress-theme-check/checks/cp_users_levels.php:2
- > PHP Fatal error
Uncaught Error: Interface 'CampusPress_themecheck' not found in wp-content/plugins/campuspress-theme-check/checks/worms.php:2
- > PHP Fatal error
Uncaught Error: Interface 'CampusPress_themecheck' not found in wp-content/plugins/campuspress-theme-check/checks/style_suggested.php:2
- > PHP Fatal error
Uncaught Error: Interface 'CampusPress_themecheck' not found in wp-content/plugins/campuspress-theme-check/checks/commpage.php:3
- > PHP Fatal error
Uncaught Error: Interface 'CampusPress_themecheck' not found in wp-content/plugins/campuspress-theme-check/checks/searchform.php:3
- > PHP Fatal error
Uncaught Error: Interface 'CampusPress_themecheck' not found in wp-content/plugins/campuspress-theme-check/checks/admin_menu.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
campuspress-theme-check/theme-check.php 85% from 13 tests
"CampusPress Code Check" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("campuspress-theme-check.php" instead of "theme-check.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
Everything looks great! No dangerous files found in this plugin2,585 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 481 | 358 | 2,086 |
PO File | 2 | 187 | 258 | 414 |
CSS | 1 | 2 | 0 | 77 |
Markdown | 1 | 5 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 6.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 50 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 109 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/gray-grad.png | 0.21KB | 0.18KB | ▼ 11.74% |