83% page-and-post-description

Code Review | Page and Post Description

WordPress plugin Page and Post Description scored83%from 54 tests.

About plugin

  • Plugin page: page-and-post-des...
  • Plugin version: ...
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.2
  • WordPress version: 6.3.1
  • First release: Jun 11, 2021
  • Latest release: Apr 19, 2023
  • Number of updates: 7
  • Update frequency: every 96.9 days
  • Top authors: wpgear (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /504 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: ▼8.87ms] Passed 4 tests

This is a short check of server-side resources used by Page and Post Description
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.46 ▼6.39
Dashboard /wp-admin3.32 ▲0.0245.43 ▼12.74
Posts /wp-admin/edit.php3.38 ▲0.0247.06 ▲1.72
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.16 ▼12.34
Media Library /wp-admin/upload.php3.25 ▲0.0231.91 ▼4.00
Page and Post Description /wp-admin/options-general.php?page=page-and-post-description/options.php3.2229.91

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Page and Post Description
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.28 ▼0.441.57 ▼0.1638.84 ▼3.47
Dashboard /wp-admin2,202 ▲255.62 ▼0.0091.78 ▲2.3539.57 ▼3.77
Posts /wp-admin/edit.php2,120 ▲202.02 ▼0.0050.89 ▲14.3243.59 ▲4.96
Add New Post /wp-admin/post-new.php6,223 ▲4,69426.05 ▲2.90827.30 ▲178.5253.08 ▼0.89
Media Library /wp-admin/upload.php1,401 ▲44.26 ▲0.0699.10 ▼2.1840.85 ▲1.14
Page and Post Description /wp-admin/options-general.php?page=page-and-post-description/options.php8562.0025.1526.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/page-and-post-description/page-and-post-description.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/page-and-post-description/includes/ajax_page-and-post-list.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/page-and-post-description/options.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Donate link: Please fix this invalid URI: "wpgear.xyz/page-and-post-description/"
You can look at the official readme.txt

page-and-post-description/page-and-post-description.php 85% from 13 tests

The main PHP script in "Page and Post Description" version ... is automatically included on every request by WordPress
You should first fix the following items:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "...")
  • Description: Keep the plugin description shorter than 140 characters (currently 174 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected400 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP57444267
JavaScript1346102
CSS10431

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin