78% aprils-call-posts

Code Review | April's Call Posts

WordPress plugin April's Call Posts scored78%from 54 tests.

About plugin

  • Plugin page: aprils-call-posts
  • Plugin version: 2.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Jun 30, 2010
  • Latest release: Nov 26, 2020
  • Number of updates: 78
  • Update frequency: every 48.7 days
  • Top authors: springthistle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /6,915 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by April's Call Posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.09 ▼4.16
Dashboard /wp-admin3.32 ▲0.0249.53 ▼2.43
Posts /wp-admin/edit.php3.38 ▲0.0248.64 ▼3.10
Add New Post /wp-admin/post-new.php5.91 ▲0.02102.90 ▲9.95
Media Library /wp-admin/upload.php3.25 ▲0.0235.89 ▼2.69

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 15 new options
New WordPress options
db_upgraded
ahscp_css
widget_recent-posts
ahscp_tmpl_1_text
can_compress_scripts
ahscp_tmpl_1_group
ahscp_tmpl_2_text
widget_theysaidso_widget
ahscp_tmpl_3_text
ahscp_tmpl_1_title
...

Browser metrics Passed 4 tests

An overview of browser requirements for April's Call Posts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.72 ▲0.571.90 ▲0.1045.71 ▲0.71
Dashboard /wp-admin2,194 ▲175.63 ▲0.0694.17 ▼11.4643.40 ▼2.10
Posts /wp-admin/edit.php2,105 ▲22.03 ▲0.0139.44 ▲1.7135.73 ▲2.02
Add New Post /wp-admin/post-new.php1,530 ▲423.16 ▲0.03606.82 ▼68.4364.21 ▲6.27
Media Library /wp-admin/upload.php1,408 ▲84.20 ▲0.0496.95 ▼29.5445.06 ▼10.16
April's Call Posts /wp-admin/ahs_callposts_admin.php260.420.1014.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 15 options in the database
    • ahscp_tmpl_2_text
    • ahscp_tmplnum
    • can_compress_scripts
    • ahscp_tmpl_1_text
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • ahscp_tmpl_1_title
    • ahscp_css
    • ahscp_tmpl_3_title
    • ahscp_tmpl_3_text
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aprils-call-posts/ahs_callposts_admin.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/aprils-call-posts/ahs_callposts.php:258

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/ahs_callposts_admin.php
    • > Network (severe)
    wp-admin/ahs_callposts_admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Screenshots: Screenshot #1 (Template Settings) image required
The official readme.txt is a good inspiration

aprils-call-posts/ahs_callposts.php 85% from 13 tests

The entry point to "April's Call Posts" version 2.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("aprils-call-posts.php" instead of "ahs_callposts.php")
  • Description: The description should be shorter than 140 characters (currently 197 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin623 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27465480
CSS18380
HTML126063

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin