89% article

Code Review | Article

WordPress plugin Article scored89%from 54 tests.

About plugin

  • Plugin page: article
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.0.2
  • WordPress version: 6.3.1
  • First release: Feb 19, 2021
  • Latest release: Oct 17, 2022
  • Number of updates: 54
  • Update frequency: every 11.2 days
  • Top authors: lightimagemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /982 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.42ms] Passed 4 tests

An overview of server-side resources used by Article
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.31 ▲1.68
Dashboard /wp-admin3.36 ▲0.0645.80 ▼4.20
Posts /wp-admin/edit.php3.41 ▲0.0547.51 ▼0.55
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.04 ▼9.09
Media Library /wp-admin/upload.php3.29 ▲0.0533.57 ▲0.15
All Articles /wp-admin/edit.php?post_type=article3.3335.06
Add New /wp-admin/post-new.php?post_type=article3.4143.77

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Article
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16813.56 ▼1.065.16 ▲3.3852.70 ▲11.43
Dashboard /wp-admin2,236 ▲485.86 ▲0.9697.97 ▼13.4937.56 ▼9.00
Posts /wp-admin/edit.php2,116 ▲272.01 ▼0.0439.60 ▲1.1235.37 ▲3.74
Add New Post /wp-admin/post-new.php1,546 ▲2723.24 ▼0.11658.84 ▼19.3657.95 ▼11.31
Media Library /wp-admin/upload.php1,415 ▲274.13 ▼0.07103.67 ▼0.2346.96 ▲1.39
All Articles /wp-admin/edit.php?post_type=article1,0971.9534.3532.45
Add New /wp-admin/post-new.php?post_type=article2,2077.65182.5169.95

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 detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Please a description for screenshot #2 in article/assets to your readme.txt
  • Screenshots: Screenshot #1 (Main screen) image missing
The official readme.txt might help

article/article.php 92% from 13 tests

The entry point to "Article" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 193 characters long)

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
Everything looks great! No dangerous files found in this plugin360 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP269172229
PO File23838131

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity4.50
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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