Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.45ms] Passed 4 tests
Server-side resources used by Object Oriented Plugin Template Solution
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.16 ▼2.24 |
Dashboard /wp-admin | 3.41 ▲0.10 | 43.78 ▼2.23 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.25 ▲1.07 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 93.92 ▼0.47 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.16 ▼0.86 |
Object Oriented Plugin Template Solution /wp-admin/options-general.php?page=oop-plugin-template-solution | 3.30 | 31.23 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_oop_plugin_template_solution_login |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
oop-plugin-template-solution-options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Object Oriented Plugin Template Solution
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.63 ▼0.76 | 1.69 ▼0.43 | 38.92 ▼9.19 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.97 | 109.26 ▼0.77 | 39.17 ▼2.19 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.96 ▼0.17 | 41.16 ▲2.94 | 35.23 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.27 ▲0.20 | 658.22 ▲18.71 | 69.28 ▲16.68 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.24 ▼0.07 | 95.99 ▼6.69 | 41.69 ▼0.18 |
Object Oriented Plugin Template Solution /wp-admin/options-general.php?page=oop-plugin-template-solution | 831 | 2.07 | 22.23 | 24.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function get_blog_prefix() on null in wp-content/plugins/oop-plugin-template-solution/oop-plugin-template-solution.php:165
- > PHP Fatal error
require_once(): Failed opening required 'PHPUnit/Autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/oop-plugin-template-solution/tests/TestCase.php on line 90
- > PHP Fatal error
Uncaught Error: Class 'oop_plugin_template_solution' not found in wp-content/plugins/oop-plugin-template-solution/admin.php:54
- > PHP Fatal error
require_once(): Failed opening required 'PHPUnit/Autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/oop-plugin-template-solution/tests/TestCase.php on line 90
- > PHP Fatal error
Uncaught Error: Call to a member function get_blog_prefix() on null in wp-content/plugins/oop-plugin-template-solution/oop-plugin-template-solution.php:165
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: multisite, skeleton, template, translation, object oriented...
oop-plugin-template-solution/oop-plugin-template-solution.php Passed 13 tests
The entry point to "Object Oriented Plugin Template Solution" version 1.1.2 is a PHP file that has certain tags in its header comment area
53 characters long description:
A well engineered template for creating plugins using
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin732 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 186 | 655 | 651 |
Bourne Shell | 3 | 11 | 0 | 81 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 11.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 7 | 12.73% |
▷ Public methods | 33 | 60.00% |
▷ Protected methods | 22 | 40.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.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
There were not PNG files found in your plugin