46% single-posts-ext

Code Review | Network Posts Extended

WordPress plugin Network Posts Extended scored46%from 54 tests.

About plugin

  • Plugin page: single-posts-ext
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2018
  • Latest release: Apr 30, 2020
  • Number of updates: 31
  • Update frequency: every 25.8 days
  • Top authors: johnzenausa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /988 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.56MB] [CPU: ▼27.93ms] Passed 4 tests

This is a short check of server-side resources used by Network Posts Extended
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3842.44 ▲2.77
Dashboard /wp-admin3.39 ▲0.0827.63 ▼20.47
Posts /wp-admin/edit.php3.39 ▲0.0326.82 ▼19.35
Add New Post /wp-admin/post-new.php3.39 ▼2.5030.02 ▼63.67
Media Library /wp-admin/upload.php3.39 ▲0.1625.75 ▼8.24
Single Posts Ext /wp-admin/options-general.php?page=single_posts_page3.3931.05

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Network Posts Extended
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.68 ▼1.111.82 ▼0.0437.00 ▼13.16
Dashboard /wp-admin2,213 ▲224.83 ▼0.0998.61 ▼7.7439.61 ▼1.83
Posts /wp-admin/edit.php2,090 ▲12.05 ▲0.0040.61 ▲4.1635.83 ▲3.53
Add New Post /wp-admin/post-new.php1,536 ▲123.12 ▼0.01628.05 ▼78.5266.06 ▲12.11
Media Library /wp-admin/upload.php1,395 ▲74.24 ▲0.0995.91 ▼14.9242.38 ▼4.63
Single Posts Ext /wp-admin/options-general.php?page=single_posts_page9372.0623.3228.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5453
    Function add_option_whitelist is deprecated since version 5.5.0! Use add_allowed_options() instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=single_posts_page
    • > User deprecated in wp-includes/functions.php+5453
    Function add_option_whitelist is deprecated since version 5.5.0! Use add_allowed_options() instead.

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/single-posts-ext/single-posts-extended.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function single_posts_path() in wp-content/plugins/single-posts-ext/single-posts-init.php:3

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/options-general.php?page=single_posts_page
    • > Network (severe)
    wp-content/plugins/single-posts-extended/pictures/interserverwebhosting.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=single_posts_page
    • > Network (severe)
    wp-content/plugins/single-posts-extended/pictures/Freelancer-black.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% 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 to be fixed:
  • Contributors: Plugin contributors field is missing
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4 in single-posts-ext/assets to your readme.txt
You can take inspiration from this readme.txt

single-posts-ext/single-posts-extended.php 77% from 13 tests

Analyzing the main PHP file in "Network Posts Extended" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("single-posts-ext.php" instead of "single-posts-extended.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Description: The description should be shorter than 140 characters (currently 191 characters long)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
It is important to fix the following items
  • For security reasons, never distribute binary or executable files with your plugin
    • .lnk - File Shortcut in Windows
      • wp-content/plugins/single-posts-ext/language/11-07-2017 - Shortcut.lnk
2,233 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP233371391,255
HTML21340342
CSS480237
JavaScript23774171
Bourne Shell12111123
PO File42024101
SVG4004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity7.54
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes13
▷ Abstract classes215.38%
▷ Concrete classes1184.62%
▷ Final classes00.00%
Methods101
▷ Static methods1716.83%
▷ Public methods6463.37%
▷ Protected methods3231.68%
▷ Private methods54.95%
Functions49
▷ Named functions2959.18%
▷ Anonymous functions2040.82%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.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 images were found in this plugin