77% easy-wp-tiles

Code Review | Easy WP Tiles

WordPress plugin Easy WP Tiles scored77%from 54 tests.

About plugin

  • Plugin page: easy-wp-tiles
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Jul 9, 2017
  • Latest release: Jul 9, 2017
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: havengr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /665 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.03MB] [CPU: ▼6.27ms] Passed 4 tests

An overview of server-side resources used by Easy WP Tiles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.95 ▼3.33
Dashboard /wp-admin3.39 ▲0.0854.29 ▲7.41
Posts /wp-admin/edit.php3.46 ▲0.1050.51 ▲3.11
Add New Post /wp-admin/post-new.php5.53 ▼0.3683.93 ▼24.21
Media Library /wp-admin/upload.php3.30 ▲0.0735.39 ▼0.65
Easy WP Dashboard /wp-admin/options-general.php?page=Easy-WP-Dashboard3.2737.90

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy WP Tiles
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.80 ▲0.151.74 ▼0.1939.17 ▼4.29
Dashboard /wp-admin2,217 ▲265.83 ▲0.7197.02 ▼19.0534.93 ▼6.94
Posts /wp-admin/edit.php2,104 ▲152.01 ▲0.0035.94 ▼6.4940.76 ▲4.48
Add New Post /wp-admin/post-new.php1,365 ▼17017.03 ▼6.11586.08 ▼81.5050.49 ▲3.37
Media Library /wp-admin/upload.php1,402 ▲144.22 ▲0.0598.20 ▼1.5538.33 ▼4.92
Easy WP Dashboard /wp-admin/options-general.php?page=Easy-WP-Dashboard1,0142.0726.5328.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=Easy-WP-Dashboard
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'custom_admin_js' not found or invalid function name

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/easy-wp-tiles/easydashboard.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2 in easy-wp-tiles/assets to your readme.txt
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

easy-wp-tiles/easydashboard.php 85% from 13 tests

The principal PHP file in "Easy WP Tiles" v. 1... is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-wp-tiles.php" instead of "easydashboard.php")
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1...")

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
Good job! No executable or dangerous file extensions detected436 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP117024436

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin