Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.47ms] Passed 4 tests
This is a short check of server-side resources used by Page Modified
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.08 | 37.51 ▼7.51 |
Dashboard /wp-admin | 3.35 ▲0.05 | 40.73 ▼10.68 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.46 ▲1.91 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 96.08 ▲2.41 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 37.52 ▲5.01 |
Page Modified /wp-admin/options-general.php?page=page-modified | 3.27 | 30.86 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Page Modified
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲238 | 14.69 ▲0.45 | 3.23 ▲1.08 | 38.12 ▼9.51 |
Dashboard /wp-admin | 2,379 ▲194 | 5.96 ▲0.86 | 139.77 ▲34.06 | 53.79 ▲7.66 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.05 | 39.86 ▲3.43 | 35.53 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,536 ▲14 | 23.44 ▲0.05 | 637.09 ▼36.75 | 53.23 ▼1.23 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.24 ▲0.01 | 96.75 ▼15.48 | 40.37 ▼7.28 |
Page Modified /wp-admin/options-general.php?page=page-modified | 783 | 2.03 | 26.93 | 29.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-modified/wp-page-modified.php:137
- > PHP Fatal error
Uncaught Error: Class 'Page_Modified_API' not found in wp-content/plugins/page-modified/includes/api/class-api-domains.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/page-modified/includes/admin/class-dashboard-widget.php:12
- > PHP Fatal error
Uncaught Error: Class 'Page_Modified_API' not found in wp-content/plugins/page-modified/includes/api/class-api-histories.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: page modified, utility, pagemodified, crawler
page-modified/wp-page-modified.php 69% from 13 tests
The principal PHP file in "Page Modified" v. 1.0.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("page-modified.php" instead of "wp-page-modified.php")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
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 plugin549 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 97 | 222 | 397 |
JavaScript | 1 | 7 | 3 | 79 |
CSS | 1 | 5 | 2 | 59 |
JSON | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 3 | 9.38% |
▷ Public methods | 20 | 62.50% |
▷ Protected methods | 1 | 3.12% |
▷ Private methods | 11 | 34.38% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin