94% 7-post-classes

Code Review | 7 Post Classes

WordPress plugin 7 Post Classes scored 94% from 54 tests.

About plugin

  • Plugin page: 7-post-classes
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.2.2
  • WordPress version: 5.9.2
  • First release: Jul 1, 2015
  • Latest release: Jul 1, 2015
  • Number of updates: 3
  • Update frequency: every 6.3 days
  • Top authors: 7 Listings (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 982 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼313.55ms] Passed 4 tests

Analyzing server-side resources used by 7 Post Classes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0257.79 ▲1.78
Dashboard /wp-admin3.41 ▲0.0138.12 ▲3.87
Posts /wp-admin/edit.php3.65 ▲0.0162.30 ▲21.23
Add New Post /wp-admin/post-new.php6.88 ▼0.0991.11 ▼1,263.30
Media Library /wp-admin/upload.php3.30 ▲0.0029.54 ▲3.47

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for 7 Post Classes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.78 ▼0.276.30 ▼0.823.00 ▲0.50
Dashboard /wp-admin2,892 ▲316.14 ▲0.00115.79 ▼55.72170.73 ▲3.14
Posts /wp-admin/edit.php2,691 ▲63.23 ▼0.0067.07 ▲2.90141.09 ▼80.86
Add New Post /wp-admin/post-new.php1,752 ▲8621.51 ▲1.00447.51 ▼11.76159.29 ▼5.20
Media Library /wp-admin/upload.php1,698 ▼05.50 ▼0.04143.87 ▼6.01263.40 ▲9.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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)
Even though no errors were found, 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/7-post-classes/7-post-classes.php:18

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: seo, taxonomy, post, woocommerce, class

7-post-classes/7-post-classes.php Passed 13 tests

The main PHP file in "7 Post Classes" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
48 characters long description:
Remove generated taxonomy post classes for posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin