Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.45ms] Passed 4 tests
An overview of server-side resources used by Code Revisions
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 53.91 ▲10.51 |
Dashboard /wp-admin | 3.37 ▲0.07 | 53.37 ▲1.74 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 52.92 ▼0.80 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 88.77 ▼8.26 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 42.80 ▲5.54 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Code Revisions: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.36 ▲0.00 | 1.98 ▲0.31 | 42.20 ▼5.37 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▼0.08 | 84.53 ▼37.36 | 40.02 ▼21.63 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.96 ▼0.00 | 35.33 ▼0.52 | 34.97 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.17 ▲0.16 | 662.70 ▼26.83 | 53.46 ▼24.74 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.25 ▲0.09 | 99.68 ▲6.23 | 42.50 ▲0.81 |
Uninstaller [IO: ▲0.05MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following itemsZombie WordPress options detected upon uninstall: 6 options
- This plugin has failed uninstalling correctly, leaving 13 files (0.05MB) in the plugin directory
- (new file) inc/class-code-revisions.php
- (new file) css/editors.css
- (new file) css/viewer.css
- (new file) js/editors.js
- (new file) css/viewer.min.css
- (new file) css/editors.min.css
- (new file) inc/metabox.php
- (new file) code-revisions.php
- (new file) inc/class-code-revisions-editors.php
- (new file) inc/plugged.php
- ...
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/code-revisions/inc/metabox.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/code-revisions/code-revisions.php:32
- > PHP Warning
Use of undefined constant CODE_REVISIONS_DIR - assumed 'CODE_REVISIONS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/code-revisions/inc/metabox.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
code-revisions/code-revisions.php Passed 13 tests
The main PHP file in "Code Revisions" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Brings native code revisions to the WordPress integrated code editors.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected493 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 134 | 316 | 421 |
JavaScript | 2 | 13 | 20 | 47 |
CSS | 4 | 5 | 11 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 41.50 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 17 | 70.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 29.17% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
No PNG images were found in this plugin