94% heptagon-post-addenda

Code Review | Heptagon Post Addenda

WordPress plugin Heptagon Post Addenda scored 94% from 54 tests.

About plugin

  • Plugin page: heptagon-post-add...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 5.9.2
  • First release: Oct 12, 2015
  • Latest release: Dec 15, 2015
  • Number of updates: 9
  • Update frequency: every 7.3 days
  • Top authors: thunderdunk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 879 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.18MB] [CPU: ▼303.25ms] Passed 4 tests

A check of server-side resources used by Heptagon Post Addenda
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0553.66 ▲2.47
Dashboard /wp-admin3.46 ▲0.0536.82 ▲2.24
Posts /wp-admin/edit.php3.68 ▲0.0440.91 ▼4.39
Add New Post /wp-admin/post-new.php6.10 ▼0.8680.56 ▼1,213.30
Media Library /wp-admin/upload.php3.34 ▲0.0438.45 ▲11.78
All Addenda /wp-admin/edit.php?post_type=addenda3.3727.46
Add New /wp-admin/post-new.php?post_type=addenda3.6941.16

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, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Heptagon Post Addenda
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲3415.54 ▼0.626.32 ▲0.142.86 ▲0.21
Dashboard /wp-admin2,913 ▲526.16 ▼0.05121.00 ▼18.54154.01 ▼7.99
Posts /wp-admin/edit.php2,726 ▲323.24 ▲0.0083.35 ▲21.13145.50 ▼0.80
Add New Post /wp-admin/post-new.php1,867 ▲19824.39 ▲4.07417.70 ▼27.00195.36 ▲26.01
Media Library /wp-admin/upload.php1,733 ▲325.56 ▲0.08144.84 ▼2.61191.27 ▼6.49
All Addenda /wp-admin/edit.php?post_type=addenda1,4062.9262.16155.58
Add New /wp-admin/post-new.php?post_type=addenda2,80410.04211.25249.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/heptagon-post-addenda/heptagon-post-addenda.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === heptagon-post-addenda === )
The official readme.txt is a good inspiration

heptagon-post-addenda/heptagon-post-addenda.php Passed 13 tests

The primary PHP file in "Heptagon Post Addenda" version 1.0.2 is used by WordPress to initiate all plugin functionality
79 characters long description:
Create disclaimers or other bits of text and add them to the end of your 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
There were no executable files found in this plugin129 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15632129

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions5
▷ Named functions5100.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
There are no PNG files in this plugin