78% wp-eis

Code Review | WP EIS

WordPress plugin WP EIS scored78%from 54 tests.

About plugin

  • Plugin page: wp-eis
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5.1
  • WordPress version: 6.3.1
  • First release: Jan 13, 2013
  • Latest release: Feb 6, 2013
  • Number of updates: 42
  • Update frequency: every 0.6 days
  • Top authors: mehral (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /4,090 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.37MB] [CPU: ▼5.33ms] Passed 4 tests

This is a short check of server-side resources used by WP EIS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3446.20 ▲2.68
Dashboard /wp-admin3.69 ▲0.3950.95 ▲0.96
Posts /wp-admin/edit.php3.80 ▲0.4552.32 ▲5.80
Add New Post /wp-admin/post-new.php6.27 ▲0.38105.68 ▼30.77
Media Library /wp-admin/upload.php3.61 ▲0.3842.76 ▲8.96
ALL Slides /wp-admin/admin.php?page=wp-eis/all-slides3.5838.75
Settings /wp-admin/admin.php?page=wp-eis3.5538.32
Add Slideshow /wp-admin/admin.php?page=wp-eis/add-slide3.5835.06
ALL Images /wp-admin/admin.php?page=wp-eis/all-images3.5839.60
Add Images /wp-admin/admin.php?page=wp-eis/add-images3.5938.58
About Plugin /wp-admin/admin.php?page=wp-eis/about3.5846.48

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 44 new files
Database: 2 new tables, 7 new options
New tables
wp_eis_name
wp_eis_items
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
wp_eis_version
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

WP EIS: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲11313.31 ▼1.273.99 ▲2.0138.52 ▼5.09
Dashboard /wp-admin2,252 ▲676.03 ▲0.17102.66 ▼17.4473.17 ▲22.88
Posts /wp-admin/edit.php2,152 ▲632.27 ▲0.2740.36 ▲3.3435.97 ▲1.97
Add New Post /wp-admin/post-new.php1,706 ▲16422.33 ▲4.21631.77 ▼9.3764.39 ▲8.48
Media Library /wp-admin/upload.php1,438 ▲534.25 ▲0.03103.36 ▲0.7067.82 ▲23.90
ALL Slides /wp-admin/admin.php?page=wp-eis/all-slides9371.8326.7024.31
Settings /wp-admin/admin.php?page=wp-eis1,1751.8228.3632.34
Add Slideshow /wp-admin/admin.php?page=wp-eis/add-slide1,1191.8226.7126.11
ALL Images /wp-admin/admin.php?page=wp-eis/all-images9311.8126.3226.04
Add Images /wp-admin/admin.php?page=wp-eis/add-images1,0552.3741.5233.87
About Plugin /wp-admin/admin.php?page=wp-eis/about8771.8025.2426.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=wp-eis
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WP_EIS_Opt::wp_eis_setting_page() should not be called statically

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_EIS_DB' not found in wp-content/plugins/wp-eis/inc/wp-eis-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wp-eis/wp-eis.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-eis/wp-eis-shortcode.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: slideshow manager, slider, responsive slider, responsive, slideshow

wp-eis/wp-eis.php 92% from 13 tests

The main PHP file in "WP EIS" ver. 1.3.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 174 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,363 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP6195812,038
PO File2344566700
JavaScript3139131380
CSS31420245

PHP code Passed 2 tests

This is a short overview 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.31
Average class complexity95.50
▷ Minimum class complexity3.00
▷ Maximum class complexity188.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods43
▷ Static methods00.00%
▷ Public methods43100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.55MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png111.41KB41.07KB▼ 63.14%
screenshot-1.png143.40KB51.30KB▼ 64.23%
screenshot-4.png63.95KB25.33KB▼ 60.39%
screenshot-5.png71.55KB26.97KB▼ 62.30%
screenshot-3.png152.08KB55.98KB▼ 63.19%