79% easyindex

Code Review | EasyIndex

WordPress plugin EasyIndex scored79%from 54 tests.

About plugin

  • Plugin page: easyindex
  • Plugin version: 1.1.1704
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.3
  • WordPress version: 6.3.1
  • First release: Sep 16, 2015
  • Latest release: Dec 2, 2019
  • Number of updates: 48
  • Update frequency: every 37.2 days
  • Top authors: Jayce53 (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

2,000+ active /43,857 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼3.61ms] Passed 4 tests

This is a short check of server-side resources used by EasyIndex
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2646.24 ▲5.06
Dashboard /wp-admin3.58 ▲0.2851.71 ▼4.92
Posts /wp-admin/edit.php3.70 ▲0.3453.96 ▲3.01
Add New Post /wp-admin/post-new.php6.17 ▲0.2893.44 ▼7.58
Media Library /wp-admin/upload.php3.51 ▲0.2838.28 ▼4.95
Help /wp-admin/admin.php?page=EasyIndexHelp3.5934.68
Add New /wp-admin/post-new.php?post_type=easyindex4.4274.04
All Indexes /wp-admin/edit.php?post_type=easyindex3.5539.73
Settings /wp-admin/admin.php?page=EasyIndex3.6244.45

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 202 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
EasyIndex
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

EasyIndex: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11014.80 ▲0.471.82 ▲0.1143.42 ▲0.38
Dashboard /wp-admin2,262 ▲775.86 ▼0.19103.79 ▼0.3673.42 ▲27.84
Posts /wp-admin/edit.php2,148 ▲592.06 ▲0.0334.62 ▼6.0032.36 ▼3.59
Add New Post /wp-admin/post-new.php6,422 ▲4,90827.45 ▲9.80894.47 ▲239.2054.53 ▲3.03
Media Library /wp-admin/upload.php1,432 ▲444.25 ▲0.0496.56 ▼9.6071.84 ▲27.55
Help /wp-admin/admin.php?page=EasyIndexHelp1,4389.20292.7481.74
Add New /wp-admin/post-new.php?post_type=easyindex3,4984.0588.42116.96
All Indexes /wp-admin/edit.php?post_type=easyindex1,1061.9833.1227.82
Settings /wp-admin/admin.php?page=EasyIndex1,6473.5385.0098.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/easyindex/easyindex.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/easyindex/lib/EasyIndexWalker.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'EasyIndexImage' not found in wp-content/plugins/easyindex/lib/EasyIndexImageGD.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'EasyIndexImage' not found in wp-content/plugins/easyindex/lib/EasyIndexImageIMagick.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'EasyIndexThumbnailBase' not found in wp-content/plugins/easyindex/lib/EasyIndexThumbnail.php:35

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: visual index, product index, thumbnail gallery, index, post index...

easyindex/easyindex.php Passed 13 tests

The main file in "EasyIndex" v. 1.1.1704 serves as a complement to information provided in readme.txt and as the entry point to the plugin
28 characters long description:
WordPress indexes made easy.

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
No dangerous file extensions were detected9,828 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
PHP251,2753,0974,548
CSS17251593,097
HTML261411851,230
JSON3700923
SVG10017
JavaScript401213

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity32.42
▷ Minimum class complexity1.00
▷ Maximum class complexity128.00
Average method complexity4.78
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes13.85%
▷ Concrete classes2596.15%
▷ Final classes00.00%
Methods226
▷ Static methods156.64%
▷ Public methods19787.17%
▷ Protected methods31.33%
▷ Private methods2611.50%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants29
▷ Global constants00.00%
▷ Class constants29100.00%
▷ Public constants29100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
43 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ui/1.11.4/images/ui-icons_469bdd_256x240.png4.44KB4.17KB▼ 6.02%
ui/1.11.4/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
ui/1.11.4/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
images/logo17.png0.37KB0.30KB▼ 19.84%
ui/1.11.4/images/ui-bg_glass_85_dfeffc_1x400.png0.33KB0.16KB▼ 53.08%