78% editnpublishcom-easy-english-editing

Code Review | editnpublish.com Easy English Editing

WordPress plugin editnpublish.com Easy English Editing scored78%from 54 tests.

About plugin

  • Plugin page: editnpublishcom-e...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 6.3.1
  • First release: Jan 23, 2015
  • Latest release: Jan 23, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: editnpublish (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,021 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.65ms] Passed 4 tests

Analyzing server-side resources used by editnpublish.com Easy English Editing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.12 ▲3.85
Dashboard /wp-admin3.31 ▲0.0146.53 ▼11.97
Posts /wp-admin/edit.php3.36 ▲0.0150.18 ▲6.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.14 ▼1.06
Media Library /wp-admin/upload.php3.23 ▲0.0136.63 ▲2.59

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for editnpublish.com Easy English Editing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.27 ▼0.321.94 ▲0.3538.88 ▼7.21
Dashboard /wp-admin2,202 ▲225.51 ▼0.1589.85 ▲1.3339.69 ▲2.31
Posts /wp-admin/edit.php2,105 ▲51.99 ▲0.0139.14 ▼2.9637.38 ▼2.03
Add New Post /wp-admin/post-new.php6,259 ▲4,71926.04 ▲7.67933.43 ▲323.1861.38 ▼5.69
Media Library /wp-admin/upload.php1,405 ▲84.18 ▼0.0296.55 ▼13.9345.44 ▲2.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 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 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 fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/editnpublishcom-easy-english-editing/lib/views.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to get property 'guid' of non-object in wp-content/plugins/editnpublishcom-easy-english-editing/lib/views.php on line 45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/editnpublishcom-easy-english-editing/editnpublish.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_field() in wp-content/plugins/editnpublishcom-easy-english-editing/lib/views.php:105
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/editnpublishcom-easy-english-editing/lib/views.php on line 45

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: There are too many tags (18 tag instead of maximum 10)
Please take inspiration from this readme.txt

editnpublishcom-easy-english-editing/editnpublish.php 85% from 13 tests

The main PHP file in "editnpublish.com Easy English Editing" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("editnpublishcom-easy-english-editing.php" instead of "editnpublish.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin137 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2722092
CSS10045

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arr.png1.03KB0.25KB▼ 75.93%
images/right-editnlogo.png6.41KB2.82KB▼ 56.01%
images/tick.png2.15KB1.19KB▼ 44.78%
images/editnlogo.png10.90KB4.36KB▼ 59.98%