84% eli-for-digital-magazines

Code Review | ELI for Digital Magazines

WordPress plugin ELI for Digital Magazines scored 84% from 54 tests.

About plugin

  • Plugin page: eli-for-digital-m...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 13, 2020
  • Latest release: Oct 1, 2020
  • Number of updates: 7
  • Update frequency: every 7.3 days
  • Top authors: herchen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 384 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by ELI for Digital Magazines
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.19 ▼0.07
Dashboard /wp-admin3.31 ▲0.0046.01 ▼2.07
Posts /wp-admin/edit.php3.36 ▲0.0047.39 ▲2.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.79 ▼4.65
Media Library /wp-admin/upload.php3.23 ▲0.0033.83 ▼1.54

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ELI for Digital Magazines
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲18213.71 ▼0.6911.76 ▲9.8942.89 ▼0.58
Dashboard /wp-admin2,206 ▲155.80 ▼0.1098.24 ▼1.4136.09 ▼5.59
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0540.24 ▲3.8035.03 ▲5.27
Add New Post /wp-admin/post-new.php1,533 ▲1323.38 ▲0.23606.15 ▼41.6852.09 ▲1.00
Media Library /wp-admin/upload.php1,391 ▲64.28 ▲0.0893.79 ▼5.1043.44 ▲1.29

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eli-for-digital-magazines/eli-for-digital-magazines.php:10

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: digital content, digital magazine smart code, eli, smart code, digital magazine...

eli-for-digital-magazines/eli-for-digital-magazines.php Passed 13 tests

The principal PHP file in "ELI for Digital Magazines" v. 3.0 is loaded by WordPress automatically on each request
71 characters long description:
Enables ELI embedded codes in PDF digital content to open in a Lightbox

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 plugin73 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2101833
PHP113632
CSS2108

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin