84% wp-post-demo

Code Review | WP Post Demo

WordPress plugin WP Post Demo scored 84% from 54 tests.

About plugin

  • Plugin page: wp-post-demo
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: Jan 10, 2015
  • Latest release: Jun 27, 2017
  • Number of updates: 25
  • Update frequency: every 36.0 days
  • Top authors: momen2009 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,188 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.29MB] [CPU: ▼18.63ms] Passed 4 tests

Server-side resources used by WP Post Demo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0141.13 ▼2.44
Dashboard /wp-admin3.35 ▲0.0547.47 ▼7.75
Posts /wp-admin/edit.php3.40 ▲0.0445.79 ▼3.81
Add New Post /wp-admin/post-new.php4.64 ▼1.2543.70 ▼60.51
Media Library /wp-admin/upload.php3.27 ▲0.0436.41 ▲2.61

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Post Demo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.36 ▼0.942.04 ▲0.2843.76 ▲1.02
Dashboard /wp-admin2,206 ▲185.84 ▼0.04111.72 ▲0.4838.68 ▼10.69
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0636.85 ▼3.2034.35 ▼3.61
Add New Post /wp-admin/post-new.php1,661 ▲12621.33 ▼1.85694.10 ▼8.7163.93 ▲1.79
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.04108.70 ▲12.9453.36 ▲11.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • 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
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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-post-demo/wp-post-demo.php:143

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
7 plugin tags: plugin, demo, posts, already, simple...

wp-post-demo/wp-post-demo.php Passed 13 tests

"WP Post Demo" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
Plug-in to create simple to post demo page that is already published.

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
Success! There were no dangerous files found in this plugin125 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1149125

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions7
▷ Named functions7100.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
No PNG files were detected