89% epaperflip-publisher

Code Review | Plugin Name: ePaperFlip Publisher

WordPress plugin Plugin Name: ePaperFlip Publisherscored89%from 54 tests.

About plugin

  • Plugin page: epaperflip-publisher
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1
  • WordPress version: 6.3.1
  • First release: Jul 20, 2015
  • Latest release: Jul 20, 2015
  • Number of updates: 9
  • Update frequency: every 2.4 days
  • Top authors: joshin85 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,139 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.57ms] Passed 4 tests

Server-side resources used by Plugin Name: ePaperFlip Publisher
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.63 ▼5.27
Dashboard /wp-admin3.31 ▲0.0046.56 ▼3.80
Posts /wp-admin/edit.php3.36 ▲0.0046.47 ▼4.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.32 ▼12.66
Media Library /wp-admin/upload.php3.23 ▲0.0037.19 ▲1.66

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Plugin Name: ePaperFlip Publisher: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.34 ▼0.011.76 ▼0.2039.06 ▼3.06
Dashboard /wp-admin2,195 ▲245.50 ▼0.2190.80 ▼4.1240.49 ▼0.84
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0334.58 ▼11.2736.90 ▲0.50
Add New Post /wp-admin/post-new.php1,526 ▼222.91 ▼0.19611.01 ▲7.7158.85 ▼3.92
Media Library /wp-admin/upload.php1,394 ▼34.17 ▼0.0299.64 ▼2.6845.71 ▲0.22

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 83% 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
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === Plugin Name: ePaperFlip Publisher=== )
You can take inspiration from this readme.txt

epaperflip-publisher/ePaperFlip Publisher.php 69% from 13 tests

Analyzing the main PHP file in "Plugin Name: ePaperFlip Publisher" version 1...
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("epaperflip-publisher.php" instead of "ePaperFlip Publisher.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path folder was not found ("/languages")
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1...")

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
Good job! No executable or dangerous file extensions detected43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161043

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected