90% easy-analytics-for-wp

Code Review | Easy Analytics For Wp

WordPress plugin Easy Analytics For Wp scored 90% from 54 tests.

About plugin

  • Plugin page: easy-analytics-fo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1
  • WordPress version: 6.3.1
  • First release: Dec 27, 2022
  • Latest release: Dec 27, 2022
  • Number of updates: 28
  • Update frequency: N/A
  • Top authors: hashtechy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 400 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.30ms] Passed 4 tests

This is a short check of server-side resources used by Easy Analytics For Wp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0742.80 ▲1.19
Dashboard /wp-admin3.37 ▲0.0650.04 ▼3.74
Posts /wp-admin/edit.php3.49 ▲0.1352.45 ▲4.26
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.57 ▼7.98
Media Library /wp-admin/upload.php3.30 ▲0.0635.97 ▲1.32

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Analytics For Wp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲5613.30 ▼0.002.19 ▲0.3844.81 ▼1.67
Dashboard /wp-admin2,226 ▲174.86 ▲0.03113.34 ▼1.4942.85 ▼3.25
Posts /wp-admin/edit.php2,109 ▲232.00 ▲0.0140.41 ▲5.3637.93 ▲4.55
Add New Post /wp-admin/post-new.php1,535 ▲2123.25 ▲5.74731.55 ▼42.2378.77 ▲21.20
Media Library /wp-admin/upload.php1,411 ▲234.18 ▲0.0396.47 ▼28.4641.79 ▼10.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: google, analytics, google analytics, search console, wordpress analytics...

easy-analytics-for-wp/easy-analytics-for-wp.php Passed 13 tests

The main file in "Easy Analytics For Wp" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
This is a description of the plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin402 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10118482284
CSS12716104
JavaScript14014

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.57
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin