77% exceltheme-addon

Code Review | Exceltheme Addon

WordPress plugin Exceltheme Addon scored77%from 54 tests.

About plugin

  • Plugin page: exceltheme-addon
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8.3
  • WordPress version: 6.3.1
  • First release: Nov 20, 2017
  • Latest release: Nov 21, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: exceltheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,101 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
Installer ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼0.89ms] Passed 4 tests

A check of server-side resources used by Exceltheme Addon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2645.74 ▲6.30
Dashboard /wp-admin3.61 ▲0.3154.15 ▲2.35
Posts /wp-admin/edit.php3.65 ▲0.2957.66 ▼0.04
Add New Post /wp-admin/post-new.php6.15 ▲0.2790.41 ▼12.19
Media Library /wp-admin/upload.php3.47 ▲0.2549.59 ▲7.76

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
widget_excel_addon_recent_post
can_compress_scripts
widget_excel_addon_featured_post
widget_recent-posts
theysaidso_admin_options
widget_excel_addon_popular_post
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Exceltheme Addon
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲11913.40 ▼0.847.64 ▲5.9543.19 ▼4.00
Dashboard /wp-admin2,204 ▲245.63 ▲0.0293.17 ▲5.7742.66 ▼4.45
Posts /wp-admin/edit.php2,113 ▲132.15 ▲0.1239.56 ▼0.4135.64 ▼2.87
Add New Post /wp-admin/post-new.php1,532 ▲623.54 ▲0.22682.58 ▼8.3363.30 ▲2.57
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0298.61 ▼12.7743.84 ▼6.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_excel_addon_featured_post
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_excel_addon_recent_post
    • widget_excel_addon_popular_post

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/exceltheme-addon/public/partials/excel-addon-public-display.php
    • > /wp-content/plugins/exceltheme-addon/admin/partials/excel-addon-admin-display.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/exceltheme-addon/includes/widgets/class-icon-text.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/exceltheme-addon/includes/widgets/class-recent-post.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/exceltheme-addon/includes/widgets/class-featured-post.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/exceltheme-addon/includes/widgets/class-popular-post.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% 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
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
Please take inspiration from this readme.txt

exceltheme-addon/excel-addon.php 77% from 13 tests

The entry point to "Exceltheme Addon" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("exceltheme-addon.php" instead of "excel-addon.php")

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
No dangerous file extensions were detected6,761 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS312292,407
PHP212338151,625
JavaScript2146458

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.93
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods54
▷ Static methods23.70%
▷ Public methods4685.19%
▷ Protected methods00.00%
▷ Private methods814.81%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/ico-delete.png0.70KB0.72KB0.00%