74% ct-page-editors

Code Review | CT Page Editors

WordPress plugin CT Page Editors scored74%from 54 tests.

About plugin

  • Plugin page: ct-page-editors
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 13, 2015
  • Latest release: Apr 13, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: cntran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,450 total downloads

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.91MB] [CPU: ▼31.23ms] Passed 4 tests

A check of server-side resources used by CT Page Editors
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.60 ▼0.76
Dashboard /wp-admin3.04 ▼0.2724.40 ▼21.01
Posts /wp-admin/edit.php3.04 ▼0.3224.34 ▼20.94
Add New Post /wp-admin/post-new.php3.04 ▼2.8526.22 ▼69.76
Media Library /wp-admin/upload.php3.04 ▼0.1922.37 ▼13.20

Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for CT Page Editors
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.21 ▼1.161.79 ▼0.0839.19 ▼3.09
Dashboard /wp-admin2,203 ▲155.86 ▼0.02109.49 ▲10.0142.73 ▼1.57
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0139.03 ▼4.8335.49 ▼3.15
Add New Post /wp-admin/post-new.php1,533 ▲1923.01 ▲5.33616.45 ▼29.9948.00 ▼11.97
Media Library /wp-admin/upload.php1,385 ▼34.21 ▼0.0195.81 ▼14.0643.11 ▼5.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/ct-page-editors/ct-page-editors.php+102
    Undefined index: post_id
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ct-page-editors/ct-page-editors.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (View of page admin area with addition of two extra edit sections (Additional Editor 1 and Additional Editor 2).), #2 (This is how you add additional edit blocks to your custom page template.)
The official readme.txt is a good inspiration

ct-page-editors/ct-page-editors.php 92% from 13 tests

The principal PHP file in "CT Page Editors" v. 0.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin88 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1431488

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.26MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png151.12KB46.00KB▼ 69.56%
screenshot-2.png119.33KB28.32KB▼ 76.27%