84% post-right-there

Code Review | Post Right There

WordPress plugin Post Right There scored84%from 54 tests.

About plugin

  • Plugin page: post-right-there
  • Plugin version: 0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 11, 2017
  • Latest release: Oct 11, 2017
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: alistat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /534 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.32MB] [CPU: ▲3.78ms] Passed 4 tests

Analyzing server-side resources used by Post Right There
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4947.58 ▲10.29
Dashboard /wp-admin3.61 ▲0.3049.76 ▲3.41
Posts /wp-admin/edit.php3.72 ▲0.3648.90 ▲4.44
Add New Post /wp-admin/post-new.php6.19 ▲0.3098.29 ▲5.95
Media Library /wp-admin/upload.php3.53 ▲0.3035.16 ▲1.31
Post Right There /wp-admin/options-general.php?page=prth_settings3.5032.23

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Post Right There
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲96421.67 ▲7.28141.55 ▲139.7478.18 ▲37.47
Dashboard /wp-admin2,204 ▲164.91 ▲0.06102.35 ▼1.8447.08 ▲5.70
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0036.87 ▼4.3930.92 ▼3.85
Add New Post /wp-admin/post-new.php1,557 ▲4318.14 ▲0.67582.09 ▼34.8551.22 ▼2.53
Media Library /wp-admin/upload.php1,395 ▲74.23 ▲0.0292.91 ▼12.3843.03 ▼1.38
Post Right There /wp-admin/options-general.php?page=prth_settings8911.8130.8826.51

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/post-right-there/templates/options-page.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt is a good inspiration

post-right-there/post-right-there.php Passed 13 tests

"Post Right There" version 0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
80 characters long description:
Create, edit inline and manage posts, pages and custom posts from the front end.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,565 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13144271,636
CSS5113511,413
PHP8222631,340
PO File16667168
JSON2008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions79
▷ Named functions79100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/lib/chosen-sprite.png0.53KB0.88KB0.00%