89% eg-attachments-human-o2-icons

Code Review | EG-Attachments-Human-o2-Icons

WordPress plugin EG-Attachments-Human-o2-Icons scored89%from 54 tests.

About plugin

  • Plugin page: eg-attachments-hu...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0+
  • WordPress version: 6.3.1
  • First release: Mar 24, 2015
  • Latest release: Mar 24, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: EmmanuelG (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,163 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by EG-Attachments-Human-o2-Icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.77 ▲2.42
Dashboard /wp-admin3.32 ▼0.0251.41 ▼12.59
Posts /wp-admin/edit.php3.37 ▲0.0251.17 ▼11.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.85 ▼19.78
Media Library /wp-admin/upload.php3.24 ▲0.0232.28 ▼4.63

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for EG-Attachments-Human-o2-Icons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.121.74 ▼0.1343.45 ▼1.35
Dashboard /wp-admin2,195 ▲155.64 ▲0.0384.02 ▼9.9940.33 ▼2.25
Posts /wp-admin/edit.php2,100 ▼02.10 ▲0.0944.24 ▲4.6532.30 ▼8.47
Add New Post /wp-admin/post-new.php1,528 ▼722.94 ▲4.84646.02 ▼35.7357.52 ▼17.48
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.1194.66 ▼19.3142.77 ▼2.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
No output text or server-side errors detected on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tested up to: Invalid version format
The official readme.txt might help

eg-attachments-human-o2-icons/eg-attachments-human-o2-icons.php 85% from 13 tests

The main PHP file in "EG-Attachments-Human-o2-Icons" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/lang" does not exist

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
Good job! No executable or dangerous file extensions detected55 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2227055

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.17
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods480.00%
▷ Public methods5100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
61 PNG files occupy 0.29MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/file-ext/odp.png4.75KB2.76KB▼ 41.85%
images/file-ext/wav.png4.14KB2.83KB▼ 31.65%
images/code.png6.27KB3.15KB▼ 49.78%
images/file-ext/ods.png4.70KB2.89KB▼ 38.51%
images/video.png5.38KB3.14KB▼ 41.58%