94% add-editor-to-page-for-posts

Code Review | Add Editor To Page For Posts

WordPress plugin Add Editor To Page For Posts scored 94% from 54 tests.

About plugin

  • Plugin page: add-editor-to-pag...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 5.8.1
  • First release: Jul 8, 2015
  • Latest release: Jul 8, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: crgeary (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 2,446 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.00 ▲9.88
Dashboard /wp-admin3.07 ▲0.0136.44 ▼9.08
Posts /wp-admin/edit.php3.12 ▲0.0149.12 ▲2.11
Add New Post /wp-admin/post-new.php5.43 ▼0.01100.31 ▼585.90
Media Library /wp-admin/upload.php3.01 ▲0.0034.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.75 ▼0.077.64 ▼0.8553.32 ▼0.66
Dashboard /wp-admin2,973 ▲426.05 ▲0.11132.22 ▼17.45126.82 ▲4.64
Posts /wp-admin/edit.php2,736 ▼32.69 ▲0.0171.32 ▲2.53100.66 ▼4.22
Add New Post /wp-admin/post-new.php1,604 ▼7918.92 ▲0.30396.92 ▼1.27112.25 ▼2.57
Media Library /wp-admin/upload.php1,804 ▼35.02 ▲0.04147.97 ▼25.20130.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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.75
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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