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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.19ms] Passed 4 tests
Analyzing server-side resources used by Author Periodic Report
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.13 ▼3.68 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.89 ▼5.10 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.99 ▼6.33 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.87 ▼17.65 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.03 ▼1.83 |
Periodic Report /wp-admin/users.php?page=author-periodic-report | 3.19 | 33.56 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Author Periodic Report
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.25 ▼0.12 | 1.71 ▲0.06 | 41.40 ▼3.05 |
Dashboard /wp-admin | 2,199 ▲25 | 5.60 ▲0.00 | 87.52 ▼9.24 | 40.50 ▼3.67 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▼0.02 | 34.90 ▼12.21 | 34.21 ▼6.53 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.46 ▼4.73 | 630.73 ▼43.00 | 53.24 ▼5.42 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.11 ▼0.04 | 100.82 ▼11.65 | 44.97 ▼2.54 |
Periodic Report /wp-admin/users.php?page=author-periodic-report | 929 | 1.99 | 24.86 | 27.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Notice in wp-content/plugins/author-periodic-report/php/report.php+5
Undefined index: month
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Warning in wp-content/plugins/author-periodic-report/php/report.php+6
Use of undefined constant n - assumed 'n' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Notice in wp-content/plugins/author-periodic-report/php/report.php+9
Undefined index: year
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Warning in wp-content/plugins/author-periodic-report/php/report.php+10
Use of undefined constant Y - assumed 'Y' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
Undefined offset: 1
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
Undefined offset: 2
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
Undefined offset: 3
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
Undefined offset: 4
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
Undefined offset: 5
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
Undefined offset: 6
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
Undefined offset: 7
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
Undefined offset: 8
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
Undefined offset: 9
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
Undefined offset: 11
- > GET request to /wp-admin/users.php?page=author-periodic-report
- > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
Undefined offset: 12
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
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: month in wp-content/plugins/author-periodic-report/php/display_report.php on line 2
- > PHP Notice
Undefined variable: month in wp-content/plugins/author-periodic-report/php/display_report.php on line 3
- > PHP Notice
Undefined variable: year in wp-content/plugins/author-periodic-report/php/display_report.php on line 3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/author-periodic-report/php/display_report.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/author-periodic-report/author-periodic-report.php:13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: report, statistics, author
author-periodic-report/author-periodic-report.php Passed 13 tests
"Author Periodic Report" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
87 characters long description:
This plugin reports to the admin on posts amount of author in specified period of time.
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
There were no executable files found in this plugin115 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 32 | 8 | 115 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 5.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin