Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.69MB] [CPU: ▼138.26ms] Passed 4 tests
This is a short check of server-side resources used by The Pressengine
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.91 | 39.72 ▲15.36 |
Dashboard /wp-admin | 3.75 ▲0.70 | 50.06 ▲2.85 |
Posts /wp-admin/edit.php | 3.80 ▲0.69 | 50.87 ▲6.42 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.67 | 86.68 ▼566.13 |
Media Library /wp-admin/upload.php | 3.69 ▲0.69 | 36.62 ▲3.82 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options |
---|
json_api_plugin_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for The Pressengine
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,721 ▲125 | 15.93 ▲0.19 | 9.33 ▲0.71 | 44.68 ▼3.16 |
Dashboard /wp-admin | 2,967 ▲36 | 5.93 ▼0.05 | 148.36 ▼5.79 | 113.84 ▲1.87 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.72 ▲0.01 | 65.98 ▼3.53 | 89.08 ▲5.05 |
Add New Post /wp-admin/post-new.php | 2,057 ▲476 | 15.89 ▼4.81 | 402.40 ▲6.12 | 106.67 ▼4.24 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.02 | 161.37 ▲15.66 | 113.55 ▼5.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- json_api_plugin_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 30× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_JSON_CustomPostType' not found in wp-content/plugins/the-pressengine/lib/class-wp-json-pages.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_JSON_Posts' not found in wp-content/plugins/the-pressengine/lib/class-wp-json-media.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/admin.php): failed to open stream: No such file or directory in wp-content/plugins/the-pressengine/lib/class-wp-json-server.php on line 10
- > PHP Fatal error
Uncaught Error: Interface 'WP_JSON_ResponseInterface' not found in wp-content/plugins/the-pressengine/lib/class-wp-json-response.php:3
- > PHP Warning
include_once(ABSPATHwp-admin/includes/admin.php): failed to open stream: No such file or directory in wp-content/plugins/the-pressengine/lib/wp-json.php on line 26
- > PHP Warning
include_once(): Failed opening 'ABSPATHWPINC/class-wp-json-server.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/the-pressengine/lib/wp-json.php on line 29
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/the-pressengine/lib/wp-json.php on line 29
- > PHP Warning
include(./wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/the-pressengine/lib/wp-json.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_JSON_Posts' not found in wp-content/plugins/the-pressengine/lib/class-wp-json-customposttype.php:13
- > PHP Warning
include_once(ABSPATHWPINC/class-wp-xmlrpc-server.php): failed to open stream: No such file or directory in wp-content/plugins/the-pressengine/lib/wp-json.php on line 27
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: remote, restrict, dashboard, post, page...
the-pressengine/thepressengine.php 92% from 13 tests
The principal PHP file in "The Pressengine" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("the-pressengine.php" instead of "thepressengine.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,969 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 946 | 1,844 | 2,969 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 31.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 151 | |
▷ Static methods | 1 | 0.66% |
▷ Public methods | 115 | 76.16% |
▷ Protected methods | 36 | 23.84% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 6 | 31.58% |
▷ Class constants | 13 | 68.42% |
▷ Public constants | 13 | 100.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 are no PNG files in this plugin