94% force-post-content

Code Review | Force Post Content

WordPress plugin Force Post Content scored 94% from 54 tests.

About plugin

  • Plugin page: force-post-content
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Mar 21, 2013
  • Latest release: Mar 21, 2013
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: ashorlivs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 750 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼144.53ms] Passed 4 tests

A check of server-side resources used by Force Post Content
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0035.84 ▲0.07
Dashboard /wp-admin3.06 ▲0.0143.12 ▼4.20
Posts /wp-admin/edit.php3.11 ▲0.0148.49 ▲3.33
Add New Post /wp-admin/post-new.php5.43 ▼0.0091.84 ▼566.36
Media Library /wp-admin/upload.php3.01 ▼0.0032.62 ▼7.63

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Force Post Content
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10815.90 ▲0.379.63 ▼0.5142.87 ▼4.05
Dashboard /wp-admin2,967 ▲335.94 ▼0.00143.62 ▼12.65111.19 ▲4.69
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0063.74 ▼5.2582.38 ▼16.60
Add New Post /wp-admin/post-new.php1,683 ▲6818.36 ▼3.06426.50 ▲100.97105.25 ▼7.36
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.02175.14 ▲25.77115.21 ▲0.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/force-post-content/force-post-content.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

force-post-content/force-post-content.php Passed 13 tests

The main file in "Force Post Content" v. 0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
59 characters long description:
Forces user to assign a Content to a post before publishing

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

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin