Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.85ms] Passed 4 tests
Server-side resources used by NextCellent Simple History
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 32.31 ▼1.15 |
Dashboard /wp-admin | 3.08 ▲0.02 | 51.47 ▲4.74 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 45.46 ▲2.44 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 91.43 ▼569.46 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 31.67 ▼3.21 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by NextCellent Simple History
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲111 | 15.74 ▲0.14 | 8.07 ▲0.24 | 43.80 ▼11.21 |
Dashboard /wp-admin | 2,971 ▲40 | 5.86 ▼0.10 | 133.87 ▼9.63 | 114.68 ▼3.91 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.69 ▲0.01 | 61.59 ▼4.97 | 84.90 ▼4.31 |
Add New Post /wp-admin/post-new.php | 1,618 ▼52 | 22.00 ▲2.75 | 264.76 ▼89.96 | 108.30 ▲3.40 |
Media Library /wp-admin/upload.php | 1,752 ▼55 | 5.01 ▼0.00 | 158.19 ▼0.94 | 122.75 ▼0.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ngg-simple-history/ngg-simple-history.php on line 28
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/ngg-simple-history/ngg-simple-history.php on line 28
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/ngg-simple-history/ngg-simple-history.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'SimpleLogger' not found in wp-content/plugins/ngg-simple-history/loggers/NextCellentLogger.php:6
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
ngg-simple-history/ngg-simple-history.php Passed 13 tests
The main file in "NextCellent Simple History" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
44 characters long description:
Adds NextCellent support for Simple History.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,358 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 3 | 758 | 1,458 | 1,013 |
PHP | 7 | 92 | 107 | 345 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 14.29% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin