89% my-wp

Code Review | My WP Customize Admin/Frontend

WordPress plugin My WP Customize Admin/Frontend scored89%from 54 tests.

About plugin

  • Plugin page: my-wp
  • Plugin version: 1.22.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Feb 18, 2017
  • Latest release: Nov 27, 2023
  • Number of updates: 150
  • Update frequency: every 16.5 days
  • Top authors: gqevu6bsiz (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

7,000+ active /70,812 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲6.55MB] [CPU: ▲39.42ms] 75% from 4 tests

Analyzing server-side resources used by My WP Customize Admin/Frontend
Please fix the following
  • Extra RAM: The extra memory usage must be under 5MB (currently 6.55MB on /wp-admin/admin.php?page=mywp_frontend)
PageMemory (MB)CPU Time (ms)
Home /9.96 ▲6.4979.08 ▲39.09
Dashboard /wp-admin9.89 ▲6.5891.48 ▲39.63
Posts /wp-admin/edit.php9.96 ▲6.60106.11 ▲58.88
Add New Post /wp-admin/post-new.php12.44 ▲6.55128.38 ▲30.55
Media Library /wp-admin/upload.php9.84 ▲6.6082.36 ▲48.42
Website /wp-admin/admin.php?page=mywp_site9.8481.73
Update /wp-admin/admin.php?page=mywp_update9.8181.03
Debug /wp-admin/admin.php?page=mywp_debug9.8176.83
My WP /wp-admin/admin.php?page=mywp9.8178.99
Admin /wp-admin/admin.php?page=mywp_admin9.8985.11
Log in /wp-admin/admin.php?page=mywp_login9.8989.93
Frontend /wp-admin/admin.php?page=mywp_frontend9.8178.56

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 179 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by My WP Customize Admin/Frontend
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9414.25 ▲0.041.62 ▼0.2436.33 ▼8.67
Dashboard /wp-admin2,249 ▲695.61 ▼0.04107.33 ▲8.8545.26 ▲0.57
Posts /wp-admin/edit.php2,151 ▲481.94 ▼0.0240.03 ▼0.8637.29 ▲2.46
Add New Post /wp-admin/post-new.php1,567 ▲4122.10 ▼1.04591.92 ▼13.9748.77 ▼5.51
Media Library /wp-admin/upload.php1,451 ▲574.17 ▼0.0398.51 ▲2.0841.24 ▼1.60
Website /wp-admin/admin.php?page=mywp_site9852.0730.7033.99
Update /wp-admin/admin.php?page=mywp_update1,3132.2736.2542.22
Debug /wp-admin/admin.php?page=mywp_debug1,0382.0729.8729.02
My WP /wp-admin/admin.php?page=mywp1,0692.1127.7646.43
Admin /wp-admin/admin.php?page=mywp_admin2,0126.65145.9650.88
Log in /wp-admin/admin.php?page=mywp_login1,8316.49141.0340.37
Frontend /wp-admin/admin.php?page=mywp_frontend1,3262.0526.9437.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 21 tag instead of maximum 10
The official readme.txt might help

my-wp/mywp.php 92% from 13 tests

The main PHP script in "My WP Customize Admin/Frontend" version 1.22.2 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("my-wp.php" instead of "mywp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin26,598 lines of code in 164 files:
LanguageFilesBlank linesComment linesLines of code
PHP14917,24921325,142
CSS94821,173
JavaScript52381272
SVG10011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity22.07
▷ Minimum class complexity1.00
▷ Maximum class complexity262.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes142
▷ Abstract classes107.04%
▷ Concrete classes13292.96%
▷ Final classes132100.00%
Methods1,127
▷ Static methods1,06894.76%
▷ Public methods90380.12%
▷ Protected methods13211.71%
▷ Private methods928.16%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/developer-tools.png26.25KB9.55KB▼ 63.64%
assets/img/add-ons.png30.46KB11.74KB▼ 61.45%
assets/img/frontend-customize.png39.63KB14.13KB▼ 64.34%
assets/img/admin-customize.png30.31KB11.58KB▼ 61.78%