83% edump

Code Review | edump

WordPress plugin edump scored83%from 54 tests.

About plugin

  • Plugin page: edump
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.4-5.4.0
  • WordPress version: 6.3.1
  • First release: Apr 26, 2017
  • Latest release: Apr 26, 2020
  • Number of updates: 12
  • Update frequency: every 91.3 days
  • Top authors: edumpadmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,754 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.03MB] [CPU: ▼2.73ms] Passed 4 tests

This is a short check of server-side resources used by edump
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.46 ▲1.48
Dashboard /wp-admin3.33 ▲0.0346.28 ▲0.14
Posts /wp-admin/edit.php3.38 ▲0.0344.04 ▼1.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.18 ▼10.01
Media Library /wp-admin/upload.php3.26 ▲0.0335.65 ▲0.26
edump /wp-admin/options-general.php?page=edump/edump.php3.2233.12

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

edump: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4314.28 ▲0.041.69 ▲0.0544.28 ▼0.77
Dashboard /wp-admin2,199 ▲225.62 ▼0.0589.65 ▼9.8536.90 ▼11.27
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0235.24 ▼2.9231.83 ▼1.90
Add New Post /wp-admin/post-new.php1,529 ▼823.67 ▲5.50621.14 ▼11.9960.59 ▼20.80
Media Library /wp-admin/upload.php1,398 ▼24.18 ▲0.0197.61 ▼20.7842.03 ▼8.07
edump /wp-admin/options-general.php?page=edump/edump.php8851.9926.5744.42

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edump/edump.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Setting your "Message ID" of edump in the Settings), #2 (Showing the information of PHP on your WordPress environment.)
Please take inspiration from this readme.txt

edump/edump.php 85% from 13 tests

The entry point to "edump" version 1.0.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin227 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14144167
PO File1131360

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
res/php.png3.62KB1.98KB▼ 45.41%
res/logo.png11.65KB4.12KB▼ 64.67%
res/javascript.png2.99KB1.85KB▼ 38.14%