Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼148.58ms] Passed 4 tests
Server-side resources used by Add Editor To Page For Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 35.00 ▲9.88 |
Dashboard /wp-admin | 3.07 ▲0.01 | 36.44 ▼9.08 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 49.12 ▲2.11 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 100.31 ▼585.90 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 34.37 ▼1.44 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Add Editor To Page For Posts: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.75 ▼0.07 | 7.64 ▼0.85 | 53.32 ▼0.66 |
Dashboard /wp-admin | 2,973 ▲42 | 6.05 ▲0.11 | 132.22 ▼17.45 | 126.82 ▲4.64 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.69 ▲0.01 | 71.32 ▲2.53 | 100.66 ▼4.22 |
Add New Post /wp-admin/post-new.php | 1,604 ▼79 | 18.92 ▲0.30 | 396.92 ▼1.27 | 112.25 ▼2.57 |
Media Library /wp-admin/upload.php | 1,804 ▼3 | 5.02 ▲0.04 | 147.97 ▼25.20 | 130.42 ▲0.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 1× 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/add-editor-to-page-for-posts/add-editor-to-page-for-posts.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: editor, posts
add-editor-to-page-for-posts/add-editor-to-page-for-posts.php Passed 13 tests
"Add Editor To Page For Posts" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
90 characters long description:
Reinstate the WP Editor on the "page for posts" page after it was removed in 4.2.2 update.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin12 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 3 | 15 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin