94% wp-post-front

Code Review | WP Post Front

WordPress plugin WP Post Front scored 94% from 54 tests.

About plugin

  • Plugin page: wp-post-front
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 5.8.1
  • First release: Jun 9, 2016
  • Latest release: Oct 12, 2016
  • Number of updates: 11
  • Update frequency: every 12.9 days
  • Top authors: mithublue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 850 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼173.52ms] Passed 4 tests

This is a short check of server-side resources used by WP Post Front
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1836.30 ▲10.79
Dashboard /wp-admin3.12 ▲0.0645.48 ▼0.33
Posts /wp-admin/edit.php3.17 ▲0.0649.98 ▲4.13
Add New Post /wp-admin/post-new.php5.48 ▲0.0486.48 ▼699.17
Media Library /wp-admin/upload.php3.06 ▲0.0633.26 ▲1.31

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Post Front
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.87 ▲0.3811.98 ▲1.7648.02 ▼3.07
Dashboard /wp-admin2,973 ▲395.93 ▼0.02136.25 ▼10.82112.97 ▼7.54
Posts /wp-admin/edit.php2,736 ▼02.70 ▼0.0266.25 ▲1.7591.27 ▲4.20
Add New Post /wp-admin/post-new.php1,672 ▼2,07118.97 ▼0.80395.95 ▼39.04111.25 ▼1.77
Media Library /wp-admin/upload.php1,813 ▲35.07 ▲0.01155.30 ▲6.94118.15 ▲3.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, 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 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-post-front/includes/post-new-template.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: wp post front, post front, post frontend, wp post, frontend post

wp-post-front/wp-post-front.php 92% from 13 tests

The entry point to "WP Post Front" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please improve your description making it at least 10 characters long (currently 0 characters long)

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
Good job! No executable or dangerous file extensions detected530 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP38790332
JavaScript1282105
CSS10841
LESS11040
Markdown112012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected