90% my-waze

Code Review | MyWaze

WordPress plugin MyWaze scored90%from 54 tests.

About plugin

  • Plugin page: my-waze
  • Plugin version: 1.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: May 30, 2015
  • Latest release: Feb 3, 2018
  • Number of updates: 33
  • Update frequency: every 29.7 days
  • Top authors: roeeyossef (60.61%)ramiy (42.42%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /11,274 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by MyWaze
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.78 ▼0.96
Dashboard /wp-admin3.31 ▲0.0151.82 ▲2.89
Posts /wp-admin/edit.php3.37 ▲0.0147.38 ▼4.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.98 ▼6.49
Media Library /wp-admin/upload.php3.24 ▲0.0133.75 ▼1.11

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by MyWaze
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.24 ▼0.142.11 ▲0.5043.11 ▲4.14
Dashboard /wp-admin2,208 ▲345.55 ▼0.0388.63 ▼12.5839.23 ▼3.91
Posts /wp-admin/edit.php2,116 ▲161.97 ▲0.0236.60 ▲0.6632.70 ▼7.19
Add New Post /wp-admin/post-new.php1,539 ▲1123.20 ▲0.01654.93 ▼36.4256.49 ▲2.05
Media Library /wp-admin/upload.php1,419 ▲194.19 ▲0.08101.53 ▼3.0741.98 ▼4.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: mobile, waze, navigation

my-waze/mywaze.php 92% from 13 tests

This is the main PHP file of "MyWaze" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("my-waze.php" instead of "mywaze.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
Good job! No executable or dangerous file extensions detected319 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP786125278
CSS19041

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png101.08KB58.76KB▼ 41.87%
screenshot-2.png15.62KB4.80KB▼ 69.27%
img/icon3.png5.47KB2.90KB▼ 46.94%
img/icon4.png4.43KB3.22KB▼ 27.40%
img/icon2.png7.01KB2.93KB▼ 58.26%