90% the-publisher-desk-read-more

Code Review | The Publisher Desk - Read More

WordPress plugin The Publisher Desk - Read More scored90%from 54 tests.

About plugin

  • Plugin page: the-publisher-des...
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Dec 16, 2020
  • Latest release: Jul 6, 2022
  • Number of updates: 8
  • Update frequency: every 70.7 days
  • Top authors: thepublisherdesk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /623 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.28ms] Passed 4 tests

Analyzing server-side resources used by The Publisher Desk - Read More
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0449.63 ▲11.51
Dashboard /wp-admin3.34 ▼0.0153.12 ▼13.78
Posts /wp-admin/edit.php3.39 ▲0.0348.72 ▼1.87
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.81 ▼22.17
Media Library /wp-admin/upload.php3.26 ▲0.0336.05 ▼3.31

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

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

Browser metrics Passed 4 tests

Checking browser requirements for The Publisher Desk - Read More
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.22 ▼1.072.07 ▲0.3544.72 ▼0.48
Dashboard /wp-admin2,206 ▲185.85 ▼0.07111.22 ▲1.4341.13 ▲4.76
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0138.32 ▼1.3033.81 ▼0.67
Add New Post /wp-admin/post-new.php6,184 ▲4,66519.54 ▼3.70909.90 ▲263.4362.13 ▲6.23
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.02103.06 ▼14.9343.79 ▼3.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: block, read more, gutenberg blocks, gutenberg, wp...

the-publisher-desk-read-more/plugin.php 92% from 13 tests

This is the main PHP file of "The Publisher Desk - Read More" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("the-publisher-desk-read-more.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin16,318 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JSON20015,701
JavaScript66624317
PHP22444155
Sass375129
Markdown15015
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
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
There were not PNG files found in your plugin