Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼1.82ms] Passed 4 tests
Server-side resources used by DirectoryEngine Counter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.39 | 40.48 ▼4.85 |
Dashboard /wp-admin | 3.69 ▲0.39 | 51.83 ▼2.64 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 51.45 ▲1.72 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.38 | 99.57 ▼1.49 |
Media Library /wp-admin/upload.php | 3.62 ▲0.38 | 38.38 ▲4.01 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_de_counter |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
DirectoryEngine Counter: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.18 | 1.86 ▼0.04 | 40.62 ▼7.18 |
Dashboard /wp-admin | 2,198 ▲33 | 5.63 ▼0.08 | 91.77 ▼0.15 | 38.61 ▼8.31 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.03 ▲0.09 | 40.69 ▲5.01 | 33.00 ▼8.94 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.18 ▼0.42 | 665.68 ▲5.48 | 38.49 ▼20.84 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.07 | 109.45 ▲3.11 | 45.25 ▼0.81 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/directoryengines-counter/framework/Widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/directoryengines-counter/plugin.php:15
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/directoryengines-counter/framework/BoxesPage.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (diadiemphatgiao.vn) image required
directoryengines-counter/plugin.php 92% from 13 tests
The main PHP file in "DirectoryEngine Counter" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("directoryengines-counter.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,831 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 587 | 1,470 | 1,809 |
JSON | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 6 | 26.09% |
▷ Concrete classes | 17 | 73.91% |
▷ Final classes | 0 | 0.00% |
Methods | 187 | |
▷ Static methods | 57 | 30.48% |
▷ Public methods | 138 | 73.80% |
▷ Protected methods | 38 | 20.32% |
▷ Private methods | 11 | 5.88% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin