84% call-on-post

Code Review | CallOnPost

WordPress plugin CallOnPost scored84%from 54 tests.

About plugin

  • Plugin page: call-on-post
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.6
  • WordPress version: 6.3.1
  • First release: May 1, 2014
  • Latest release: Mar 3, 2021
  • Number of updates: 5
  • Update frequency: every 499.6 days
  • Top authors: hwde (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /754 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by CallOnPost
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.21 ▼4.37
Dashboard /wp-admin3.33 ▲0.0351.32 ▼1.55
Posts /wp-admin/edit.php3.38 ▲0.0250.80 ▼2.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.86 ▼2.45
Media Library /wp-admin/upload.php3.26 ▲0.0238.05 ▲2.47
Call On Post /wp-admin/options-general.php?page=call-on-post/call-on-post.php3.2233.16

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for CallOnPost
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.35 ▼0.011.53 ▼0.6337.81 ▼6.38
Dashboard /wp-admin2,193 ▲195.58 ▼0.0286.69 ▼5.2039.74 ▲0.94
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0036.07 ▲0.7535.75 ▼0.10
Add New Post /wp-admin/post-new.php1,529 ▲323.10 ▼0.06684.95 ▼7.6755.07 ▼4.22
Media Library /wp-admin/upload.php1,407 ▲104.22 ▼0.05113.58 ▲6.6647.93 ▲0.38
Call On Post /wp-admin/options-general.php?page=call-on-post/call-on-post.php7972.0023.9730.38

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 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/call-on-post/call-on-post.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === call-on-post === )
You can look at the official readme.txt

call-on-post/call-on-post.php Passed 13 tests

"CallOnPost" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
140 characters long description:
"Call On Post" is a Post Notifier as a plugin which will "fetch" automatic the specified URL when a post is published or modified by a user.

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
Good job! No executable or dangerous file extensions detected108 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11510108

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions12
▷ Named functions12100.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
There were not PNG files found in your plugin