100% easy-local-site

Code Review | Easy Local Site

WordPress plugin Easy Local Site scored 100% from 54 tests.

About plugin

  • Plugin page: easy-local-site
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.5
  • WordPress version: 5.8.1
  • First release: Nov 19, 2012
  • Latest release: Aug 10, 2020
  • Number of updates: 8
  • Update frequency: every 352.6 days
  • Top authors: lumpysimon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,187 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼144.01ms] Passed 4 tests

An overview of server-side resources used by Easy Local Site
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1330.75 ▲10.60
Dashboard /wp-admin3.07 ▲0.0240.63 ▼6.01
Posts /wp-admin/edit.php3.12 ▲0.0233.21 ▼9.61
Add New Post /wp-admin/post-new.php5.43 ▲0.0091.12 ▼550.98
Media Library /wp-admin/upload.php3.01 ▲0.0129.53 ▼9.45

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Easy Local Site: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.78 ▼0.187.71 ▼0.2846.29 ▼1.74
Dashboard /wp-admin2,967 ▲365.86 ▼0.12135.64 ▼2.79108.74 ▼21.61
Posts /wp-admin/edit.php2,739 ▲32.68 ▲0.0166.75 ▼3.4493.30 ▲7.33
Add New Post /wp-admin/post-new.php1,498 ▼37418.82 ▼0.44372.23 ▼9.97114.82 ▲10.70
Media Library /wp-admin/upload.php1,807 ▼35.01 ▲0.01142.92 ▲0.64118.39 ▲0.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
8 plugin tags: email, mamp, developer, xampp, wamp...

easy-local-site/easy-local-site.php 92% from 13 tests

The main PHP file in "Easy Local Site" ver. 0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
Everything looks great! No dangerous files found in this plugin74 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18711674

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin