Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.39MB] [CPU: ▼135.27ms] Passed 4 tests
A check of server-side resources used by Prime Timeline
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲1.36 | 66.60 ▲42.12 |
Dashboard /wp-admin | 4.57 ▲1.51 | 87.06 ▲50.49 |
Posts /wp-admin/edit.php | 4.60 ▲1.49 | 90.84 ▲59.80 |
Add New Post /wp-admin/post-new.php | 7.46 ▲2.02 | 151.69 ▼670.60 |
Media Library /wp-admin/upload.php | 4.20 ▲1.20 | 62.71 ▲36.90 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Prime Timeline
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 80,099 ▲76,498 | 20.67 ▲4.62 | 32.31 ▲26.01 | 73.87 ▼2.39 |
Dashboard /wp-admin | 43,014 ▲40,118 | 6.52 ▲0.34 | 219.47 ▲76.64 | 176.14 ▼3.94 |
Posts /wp-admin/edit.php | 41,079 ▲38,339 | 4.05 ▲0.83 | 100.05 ▲34.41 | 139.17 ▼0.52 |
Add New Post /wp-admin/post-new.php | 30,411 ▲26,668 | 16.21 ▼2.22 | 406.17 ▼21.63 | 164.08 ▼11.24 |
Media Library /wp-admin/upload.php | 32,618 ▲30,866 | 5.50 ▲0.04 | 180.10 ▲36.24 | 188.19 ▼3.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/prime-timeline/tpl/ps_tr.php
- > /wp-content/plugins/prime-timeline/tpl/ps_table_footer.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: val in wp-content/plugins/prime-timeline/tpl/ps_tr.php on line 58
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/prime-timeline/tpl/ps_panel.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/prime-timeline/tpl/ps_tr.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/prime-timeline/tpl/ps_tr.php on line 58
- > PHP Notice
Undefined variable: val in wp-content/plugins/prime-timeline/tpl/ps_tr.php on line 50
- > PHP Notice
Undefined variable: val in wp-content/plugins/prime-timeline/tpl/ps_tr.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/prime-timeline/tpl/ps_tr.php on line 50
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/prime-timeline/tpl/ps_table_header.php:1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: study, debug, tools, develop
prime-timeline/prime-timeline.php Passed 13 tests
The main file in "Prime Timeline" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
98 characters long description:
This plugin analyze the execution status of WordPress for debugging, performance check, and study.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected547 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 49 | 35 | 376 |
CSS | 1 | 8 | 0 | 66 |
PO File | 1 | 20 | 22 | 60 |
JavaScript | 1 | 9 | 0 | 45 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin