90% yonox-add-multiple-posts

Code Review | Yonox Add Multiple Posts

WordPress plugin Yonox Add Multiple Posts scored90%from 54 tests.

About plugin

  • Plugin page: yonox-add-multipl...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7
  • WordPress version: 6.3.1
  • First release: Jun 19, 2015
  • Latest release: Jan 12, 2017
  • Number of updates: 31
  • Update frequency: every 50.7 days
  • Top authors: yonox (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /3,114 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.50ms] Passed 4 tests

Analyzing server-side resources used by Yonox Add Multiple Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.91 ▲0.71
Dashboard /wp-admin3.33 ▲0.0344.83 ▼2.37
Posts /wp-admin/edit.php3.39 ▲0.0348.06 ▲6.04
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.87 ▼1.90
Media Library /wp-admin/upload.php3.26 ▲0.0335.52 ▼2.42

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Yonox Add Multiple Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9514.74 ▲0.152.05 ▲0.4444.46 ▲4.50
Dashboard /wp-admin2,225 ▲424.84 ▼0.08111.24 ▲0.9141.67 ▼0.28
Posts /wp-admin/edit.php2,108 ▲192.02 ▲0.0339.24 ▲4.8234.91 ▲1.70
Add New Post /wp-admin/post-new.php1,559 ▲2618.29 ▼4.86634.69 ▼24.8667.05 ▲10.56
Media Library /wp-admin/upload.php1,404 ▲194.25 ▲0.0393.97 ▼9.2839.67 ▼5.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

yonox-add-multiple-posts/yonox-add-multiple-posts.php Passed 13 tests

This is the main PHP file of "Yonox Add Multiple Posts" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Add multiple posts or pages to edit later.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin519 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP22810194
PO File26468171
JavaScript221590
CSS112164

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected