Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.76ms] Passed 4 tests
Server-side resources used by Post-Analytics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.64 ▼5.35 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.21 ▼13.49 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.35 ▼3.66 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 102.93 ▲3.47 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.02 ▲5.58 |
Post-Analytics /wp-admin/options-general.php?page=Post_Analytics_admin | 3.25 | 32.85 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
Post_Analytics_settings |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Post-Analytics
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲43 | 14.34 ▼0.04 | 1.81 ▲0.04 | 41.75 ▼2.32 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▲0.12 | 89.65 ▼2.25 | 43.66 ▲1.80 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▼0.02 | 35.19 ▼5.21 | 32.51 ▼5.55 |
Add New Post /wp-admin/post-new.php | 1,412 ▼114 | 17.92 ▼5.04 | 585.34 ▼87.14 | 43.46 ▼14.33 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▼0.00 | 114.54 ▲6.11 | 49.11 ▲4.20 |
Post-Analytics /wp-admin/options-general.php?page=Post_Analytics_admin | 958 | 2.00 | 27.90 | 27.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
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 | 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 take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/post-analytics/Post-Analytics.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-analytics/Post-Analytics-admin-page.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/post-analytics/Post-Analytics-results.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: google analytics dashboard, seo, google analytics, seo stats, google...
post-analytics/Post-Analytics.php 77% from 13 tests
This is the main PHP file of "Post-Analytics" version 1.01, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("post-analytics.php" instead of "Post-Analytics.php")
- Domain Path: The domain path points to a folder that does not exist ("/lang")
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
No dangerous file extensions were detected810 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 206 | 253 | 761 |
CSS | 1 | 0 | 0 | 49 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 21.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 17 | 68.00% |
▷ Protected methods | 6 | 24.00% |
▷ Private methods | 2 | 8.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected