83% eye-candy-theme-by-sws

Code Review | Eye-candy theme by WordPress Monsters

WordPress plugin Eye-candy theme by WordPress Monsters scored83%from 54 tests.

About plugin

  • Plugin page: eye-candy-theme-b...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Aug 18, 2016
  • Latest release: Mar 9, 2017
  • Number of updates: 26
  • Update frequency: every 7.8 days
  • Top authors: Wordpress Monsters (57.69%)AlexSpace (46.15%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,026 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.50ms] Passed 4 tests

This is a short check of server-side resources used by Eye-candy theme by WordPress Monsters
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.0445.31 ▲0.73
Dashboard /wp-admin3.69 ▲0.0655.85 ▼12.54
Posts /wp-admin/edit.php3.75 ▲0.0753.02 ▲2.38
Add New Post /wp-admin/post-new.php6.21 ▲0.0696.08 ▲6.50
Media Library /wp-admin/upload.php3.53 ▲0.0438.67 ▼0.56
Eye Candy settings /wp-admin/themes.php?page=eye-candy-settings3.5338.04

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Eye-candy theme by WordPress Monsters
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲19914.33 ▼0.031.99 ▲0.0538.19 ▼2.87
Dashboard /wp-admin2,338 ▲1616.20 ▲0.50110.17 ▲17.9943.59 ▼0.38
Posts /wp-admin/edit.php2,269 ▲1693.39 ▲1.4251.82 ▲12.5236.17 ▲1.42
Add New Post /wp-admin/post-new.php1,548 ▲1723.56 ▲0.43586.42 ▼86.4132.95 ▼18.64
Media Library /wp-admin/upload.php1,409 ▲94.05 ▼0.2087.76 ▼26.8848.03 ▼2.37
Eye Candy settings /wp-admin/themes.php?page=eye-candy-settings9813.1740.5031.46

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eye-candy-theme-by-sws/includes/options-page.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_user_meta() in wp-content/plugins/eye-candy-theme-by-sws/uninstall.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eye-candy-theme-by-sws/eye-candy-theme-by-sws.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eye-candy-theme-by-sws/includes/options-page-style.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eye-candy-theme-by-sws/includes/init.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Options page), #2 (Admin dashboard view), #3 (Add/Edit post view), #4 (Activation in user profile)
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can look at the official readme.txt

eye-candy-theme-by-sws/eye-candy-theme-by-sws.php 92% from 13 tests

The main PHP script in "Eye-candy theme by WordPress Monsters" version 1.0.3 is automatically included on every request by WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 234 characters long)

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
There were no executable files found in this plugin2,149 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
Sass21950986
CSS12104870
PHP56643212
JavaScript236281

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
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 methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.80MB with 0.56MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png298.03KB90.53KB▼ 69.62%
screenshot-4.png76.09KB22.41KB▼ 70.54%
screenshot-3.png357.10KB104.57KB▼ 70.72%
screenshot-1.png88.88KB27.83KB▼ 68.69%