84% customize-posts

Code Review | Customize Posts

WordPress plugin Customize Posts scored84%from 54 tests.

About plugin

  • Plugin page: customize-posts
  • Plugin version: 0.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-4.9.0
  • WordPress version: 6.3.1
  • First release: Sep 17, 2014
  • Latest release: Nov 14, 2017
  • Number of updates: 53
  • Update frequency: every 23.4 days
  • Top authors: westonruter (92.45%)valendesigns (9.43%)

Code review

54 tests

User reviews

18 reviews

Install metrics

2,000+ active /53,472 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.46MB] [CPU: ▲5.60ms] Passed 4 tests

A check of server-side resources used by Customize Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5048.53 ▲6.91
Dashboard /wp-admin3.80 ▲0.5064.93 ▲11.13
Posts /wp-admin/edit.php3.85 ▲0.4949.70 ▼6.17
Add New Post /wp-admin/post-new.php6.32 ▲0.43115.73 ▲20.17
Media Library /wp-admin/upload.php3.66 ▲0.4347.37 ▲10.54

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 129 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Customize Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.042.23 ▲0.2149.78 ▲6.65
Dashboard /wp-admin2,206 ▲185.84 ▼0.01115.40 ▲7.5746.37 ▲5.22
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.1235.19 ▼6.3432.95 ▼5.30
Add New Post /wp-admin/post-new.php1,564 ▲5022.80 ▲1.21703.45 ▲12.0438.71 ▼12.76
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.01118.01 ▲3.4147.84 ▼1.55

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 24× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/customize-posts/php/class-wp-customize-post-section.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Postmeta_Controller' not found in wp-content/plugins/customize-posts/php/class-wp-customize-featured-image-controller.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/customize-posts/php/class-wp-customize-dynamic-control.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Postmeta_Controller' not found in wp-content/plugins/customize-posts/php/class-wp-customize-page-template-controller.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Customize_Posts_Theme_Support' not found in wp-content/plugins/customize-posts/php/theme-support/class-customize-posts-twenty-fifteen-support.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Customize_Posts_Theme_Support' not found in wp-content/plugins/customize-posts/php/theme-support/class-customize-posts-twenty-eleven-support.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Customize_Posts_Theme_Support' not found in wp-content/plugins/customize-posts/php/theme-support/class-customize-posts-twenty-sixteen-support.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Customize_Posts_Theme_Support' not found in wp-content/plugins/customize-posts/php/theme-support/class-customize-posts-twenty-thirteen-support.php:14
    • > PHP Notice
      Undefined index: wp_version in wp-content/plugins/customize-posts/php/class-customize-posts-plugin.php on line 88
    • > PHP Fatal error
      Uncaught Error: Class 'Customize_Posts_Theme_Support' not found in wp-content/plugins/customize-posts/php/theme-support/class-customize-posts-twenty-twelve-support.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: editor, page-template, posts, postmeta, preview...

customize-posts/customize-posts.php Passed 13 tests

Analyzing the main PHP file in "Customize Posts" version 0.9.1
45 characters long description:
Manage posts and postmeta via the Customizer.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin13,772 lines of code in 128 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript901,9981,7128,587
PHP297592,5614,344
CSS91063841

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity26.71
▷ Minimum class complexity1.00
▷ Maximum class complexity195.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes28
▷ Abstract classes414.29%
▷ Concrete classes2485.71%
▷ Final classes28.33%
Methods209
▷ Static methods31.44%
▷ Public methods19894.74%
▷ Protected methods115.26%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants00.00%
▷ Class constants16100.00%
▷ Public constants16100.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
There were not PNG files found in your plugin