77% increase-custompost-maker

Code Review | Increase Custompost Maker

WordPress plugin Increase Custompost Maker scored77%from 54 tests.

About plugin

  • Plugin page: increase-custompo...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: Apr 25, 2016
  • Latest release: Apr 25, 2016
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: nakanaka111 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /500 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.63MB] [CPU: ▼16.00ms] Passed 4 tests

A check of server-side resources used by Increase Custompost Maker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.78 ▼3.94
Dashboard /wp-admin3.35 ▲0.0547.09 ▼0.78
Posts /wp-admin/edit.php3.41 ▲0.0545.96 ▲0.60
Add New Post /wp-admin/post-new.php3.21 ▼2.6738.43 ▼59.88
Media Library /wp-admin/upload.php3.28 ▲0.0537.30 ▲4.20
Custom Post /wp-admin/edit.php?post_type=increase_cpm3.3237.69
Add /wp-admin/post-new.php?post_type=increase_cpm3.2033.62

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

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

Browser metrics Passed 4 tests

Increase Custompost Maker: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.24 ▼0.991.72 ▼0.5243.36 ▼1.78
Dashboard /wp-admin2,236 ▲485.87 ▲0.96106.05 ▲0.6736.63 ▼5.70
Posts /wp-admin/edit.php2,116 ▲271.99 ▲0.0237.76 ▲1.2333.04 ▲2.79
Add New Post /wp-admin/post-new.php1,565 ▲3218.38 ▼4.55619.07 ▼79.1953.23 ▼2.28
Media Library /wp-admin/upload.php1,409 ▲184.20 ▼0.0199.69 ▼5.6644.69 ▼2.80
Custom Post /wp-admin/edit.php?post_type=increase_cpm1,0771.9930.4128.14
Add /wp-admin/post-new.php?post_type=increase_cpm1,5132.5348.2763.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=increase_cpm
    • > Notice in wp-content/plugins/increase-custompost-maker/increase-custompost-maker.php+154
    Trying to get property 'ID' of non-object

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/increase-custompost-maker/increase-custompost-maker.php:64

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Donate link: Invalid URI ("")
  • Tags: No tags were detected
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Enter the information of the CustomPost.), #2 (Made CustomPost.)
Please take inspiration from this readme.txt

increase-custompost-maker/increase-custompost-maker.php 92% from 13 tests

The principal PHP file in "Increase Custompost Maker" v. 1... is loaded by WordPress automatically on each request
You should first fix the following items:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1...")

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 plugin136 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1715136

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.50
▷ Minimum class complexity4.00
▷ Maximum class complexity5.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
PNG images were not found in this plugin