72% plugin-display-page

Code Review | Plugin Display Page

WordPress plugin Plugin Display Page scored 72% from 54 tests.

About plugin

  • Plugin page: plugin-display-page
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 21, 2018
  • Latest release: Aug 21, 2018
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: frametagmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 494 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.66MB] [CPU: ▼13.90ms] Passed 4 tests

An overview of server-side resources used by Plugin Display Page
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.61 ▼1.00
Dashboard /wp-admin3.34 ▲0.0347.64 ▼0.57
Posts /wp-admin/edit.php3.39 ▲0.0443.21 ▲0.56
Add New Post /wp-admin/post-new.php3.13 ▼2.7637.05 ▼54.59
Media Library /wp-admin/upload.php3.26 ▲0.0335.95 ▲1.35
Plugin Pages /wp-admin/edit.php?post_type=pdpg_page3.3134.06
Plugin Tags /wp-admin/edit-tags.php?taxonomy=pdpg_tags&post_type=pdpg_page3.2632.89
Add New /wp-admin/post-new.php?post_type=pdpg_page3.1334.99

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Plugin Display Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲4513.25 ▼1.551.66 ▼0.0142.58 ▼2.71
Dashboard /wp-admin2,237 ▲284.89 ▲0.05104.70 ▲6.2241.37 ▲3.98
Posts /wp-admin/edit.php2,120 ▲342.02 ▼0.0336.21 ▲1.2631.17 ▼4.65
Add New Post /wp-admin/post-new.php1,562 ▲2023.50 ▲5.37618.19 ▲24.1162.27 ▲6.91
Media Library /wp-admin/upload.php1,422 ▲344.23 ▼0.0697.19 ▼7.4741.83 ▼6.98
Plugin Pages /wp-admin/edit.php?post_type=pdpg_page1,0931.9330.1630.71
Plugin Tags /wp-admin/edit-tags.php?taxonomy=pdpg_tags&post_type=pdpg_page1,2622.1426.9528.04
Add New /wp-admin/post-new.php?post_type=pdpg_page2,0343.0555.1571.92

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

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=pdpg_page
    • > Notice in wp-content/plugins/plugin-display-page/plugindisplaypage.php+297
    Undefined index: pdpg_plugin_name_nonce

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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/plugin-display-page/templates/single-pdpg_page.php:1

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 user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=pdpg_page
    • > Network (severe)
    wp-content/plugins/plugin-display-page/assets/wordpress-logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: plugin page template, display plugin information, easily display plugin, plugin page, page template...

plugin-display-page/plugindisplaypage.php 92% from 13 tests

The main PHP script in "Plugin Display Page" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("plugin-display-page.php" instead of "plugindisplaypage.php")

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
No dangerous file extensions were detected628 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP23138358
CSS32832213
JavaScript241157

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions11
▷ Named functions11100.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
No PNG images were found in this plugin