94% quick-adwords-evaluation

Code Review | Quick AdWords Evaluation

WordPress plugin Quick AdWords Evaluation scored 94% from 54 tests.

About plugin

  • Plugin page: quick-adwords-eva...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7.5
  • WordPress version: 5.9.2
  • First release: May 26, 2017
  • Latest release: May 26, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: neeaagh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 816 total downloads

Benchmarks

Plugin footprint Passed 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 successfully, without throwing any errors or notices

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

An overview of server-side resources used by Quick AdWords Evaluation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0152.20 ▼1.26
Dashboard /wp-admin3.42 ▲0.0136.34 ▲3.06
Posts /wp-admin/edit.php3.65 ▲0.0136.46 ▼15.52
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.49 ▼1,159.05
Media Library /wp-admin/upload.php3.30 ▲0.0127.42 ▲1.59

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Quick AdWords Evaluation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,827 ▲10516.50 ▲0.665.88 ▼0.623.19 ▲0.61
Dashboard /wp-admin2,920 ▲336.51 ▼0.09128.58 ▼9.46158.39 ▼0.97
Posts /wp-admin/edit.php2,708 ▲173.43 ▼0.0060.11 ▲0.98143.58 ▲0.55
Add New Post /wp-admin/post-new.php1,765 ▲721.81 ▲4.64476.85 ▲50.95203.58 ▲48.75
Media Library /wp-admin/upload.php1,721 ▲235.76 ▲0.03143.04 ▼0.98202.11 ▲14.22

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
This plugin's uninstaller ran successfully

Smoke tests 75% from 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/quick-adwords-evaluation/quick-adwords-evaluation.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: adwords audit, adwords, google adwords, ppc, google...

quick-adwords-evaluation/quick-adwords-evaluation.php Passed 13 tests

The primary PHP file in "Quick AdWords Evaluation" version 0.1 is used by WordPress to initiate all plugin functionality
91 characters long description:
Have a Certified AdWords Professional evaluate and provide advice for your AdWords account.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected130 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1287497
Markdown18033

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin