84% custom-options-plus-post-in

Code Review | CUSTOM OPTIONS PLUS POST IN

WordPress plugin CUSTOM OPTIONS PLUS POST IN scored84%from 54 tests.

About plugin

  • Plugin page: custom-options-pl...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.1
  • WordPress version: 6.3.1
  • First release: Aug 31, 2012
  • Latest release: Feb 16, 2015
  • Number of updates: 40
  • Update frequency: every 27.0 days
  • Top authors: gqevu6bsiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,376 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.45ms] Passed 4 tests

A check of server-side resources used by CUSTOM OPTIONS PLUS POST IN
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1136.13 ▼5.12
Dashboard /wp-admin3.41 ▲0.1045.97 ▼4.11
Posts /wp-admin/edit.php3.46 ▲0.1052.01 ▲3.79
Add New Post /wp-admin/post-new.php5.99 ▲0.1086.64 ▼16.34
Media Library /wp-admin/upload.php3.33 ▲0.1038.65 ▲4.61
Custom Option(coppi) /wp-admin/options-general.php?page=coppi3.2730.70

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for CUSTOM OPTIONS PLUS POST IN
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.161.64 ▼0.1339.06 ▲1.43
Dashboard /wp-admin2,210 ▲194.85 ▼0.04101.43 ▼3.8738.76 ▼1.74
Posts /wp-admin/edit.php2,093 ▲72.02 ▲0.0039.81 ▲4.5535.35 ▲0.06
Add New Post /wp-admin/post-new.php1,522 ▼123.19 ▼0.18625.57 ▼19.2951.96 ▲7.46
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0695.46 ▼6.2041.03 ▼4.59
Custom Option(coppi) /wp-admin/options-general.php?page=coppi7832.0437.8024.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 32× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/add-option-form.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/edit-category-form.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/list-option-single-row.php on line 3
    • > PHP Notice
      Trying to get property 'Info' of non-object in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/information.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/add-category-form.php:5
    • > PHP Notice
      Undefined variable: option in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/list-option-single-row.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'Coppi_Model_Abstract_Table' not found in wp-content/plugins/custom-options-plus-post-in/model/model-custom-option.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Coppi_Manager_Abstract_Controller' not found in wp-content/plugins/custom-options-plus-post-in/manager/controller-custom-option.php:5
    • > PHP Notice
      Undefined variable: coppi in wp-content/plugins/custom-options-plus-post-in/manager/view/upgrade-announce.php on line 5
    • > PHP Notice
      Undefined variable: coppi in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/information.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Settings Interface), #2 (Created Lists Interface), #3 (Memo), #4 (Usage Example for Post), #5 (Usage Example for Template), #6 (Display Example)
You can take inspiration from this readme.txt

custom-options-plus-post-in/custom-options-plus-post-in.php 92% from 13 tests

The main PHP file in "CUSTOM OPTIONS PLUS POST IN" ver. 1.4.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • 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 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,507 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP321,548222,314
PO File14960114
CSS18077
JavaScript1002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.26
▷ Minimum class complexity2.00
▷ Maximum class complexity56.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes313.04%
▷ Concrete classes2086.96%
▷ Final classes20100.00%
Methods134
▷ Static methods21.49%
▷ Public methods8865.67%
▷ Protected methods139.70%
▷ Private methods3324.63%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
6 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png62.42KB22.06KB▼ 64.66%
screenshot-1.png19.22KB8.88KB▼ 53.81%
screenshot-3.png8.12KB3.91KB▼ 51.84%
screenshot-2.png20.70KB9.58KB▼ 53.72%
screenshot-4.png12.87KB5.85KB▼ 54.49%