84% goqmieruca

Code Review | GoQMieruca

WordPress plugin GoQMieruca scored 84% from 54 tests.

About plugin

  • Plugin page: goqmieruca
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 4, 2018
  • Latest release: Aug 26, 2020
  • Number of updates: 6
  • Update frequency: every 120.5 days
  • Top authors: goqsystem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 766 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.15MB] [CPU: ▼10.19ms] Passed 4 tests

A check of server-side resources used by GoQMieruca
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.10 ▼2.56
Dashboard /wp-admin3.22 ▼0.0932.21 ▼17.57
Posts /wp-admin/edit.php3.28 ▼0.0834.89 ▼9.33
Add New Post /wp-admin/post-new.php5.46 ▼0.4274.40 ▼11.15
Media Library /wp-admin/upload.php3.22 ▼0.0132.63 ▼2.72

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
gqm_system_setting
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for GoQMieruca
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.57 ▼0.731.93 ▲0.0743.72 ▼3.12
Dashboard /wp-admin2,220 ▲325.87 ▼0.02109.24 ▼18.6777.77 ▲32.62
Posts /wp-admin/edit.php2,082 ▼72.01 ▼0.0237.74 ▲0.9632.14 ▼2.13
Add New Post /wp-admin/post-new.php1,525 ▼923.37 ▲0.34692.37 ▲57.0153.31 ▲0.75
Media Library /wp-admin/upload.php1,399 ▲84.22 ▲0.0497.69 ▼4.7569.74 ▲27.52

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • gqm_system_setting
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/goqmieruca/goqmieruca.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/goqmieruca/goqmieruca.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'GOQMIERUCA_Admin_Page' not found in wp-content/plugins/goqmieruca/admin/class-admin-setting.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/goqmieruca/admin/views/system-setting.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
3 plugin tags: ma, goqmieruca, marketing automation

goqmieruca/goqmieruca.php Passed 13 tests

The main PHP file in "GoQMieruca" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
96 characters long description:
あなたのサイトをだれがどこをどのくらいどう見たのかを「みえる化」

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 plugin594 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8132184478
CSS230116

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.60
▷ Minimum class complexity2.00
▷ Maximum class complexity29.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods47
▷ Static methods1021.28%
▷ Public methods4085.11%
▷ Protected methods12.13%
▷ Private methods612.77%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
4 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/img_complete.png55.58KB17.47KB▼ 68.57%
admin/assets/images/logo.png7.17KB3.74KB▼ 47.88%
admin/assets/images/icon-goqmieruca.png2.10KB0.58KB▼ 72.49%
admin/assets/images/img_capture_01.png51.81KB16.35KB▼ 68.44%