84% boost-traffic

Code Review | Boost Traffic

WordPress plugin Boost Traffic scored 84% from 54 tests.

About plugin

  • Plugin page: boost-traffic
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 24, 2020
  • Latest release: Mar 24, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: boosttraffic018 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 751 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.05MB] [CPU: ▼1.19ms] Passed 4 tests

A check of server-side resources used by Boost Traffic
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.02 ▼6.47
Dashboard /wp-admin3.35 ▲0.0545.13 ▼0.79
Posts /wp-admin/edit.php3.40 ▲0.0549.04 ▲5.16
Add New Post /wp-admin/post-new.php5.95 ▲0.0787.65 ▲0.56
Media Library /wp-admin/upload.php3.27 ▲0.0536.71 ▲1.96
Boost Traffic /wp-admin/options-general.php?page=im-boost-traffic3.2435.03

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Boost Traffic: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲11813.55 ▼0.581.68 ▼0.0229.71 ▼21.70
Dashboard /wp-admin2,244 ▲535.10 ▲0.22112.60 ▲8.1790.00 ▲47.71
Posts /wp-admin/edit.php2,146 ▲752.46 ▲0.4642.63 ▲5.4938.53 ▲2.21
Add New Post /wp-admin/post-new.php1,719 ▲17722.51 ▲4.45674.17 ▲56.1030.69 ▼18.22
Media Library /wp-admin/upload.php1,445 ▲544.41 ▲0.1890.25 ▼11.4277.41 ▲30.21
Boost Traffic /wp-admin/options-general.php?page=im-boost-traffic9072.3131.4838.72

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boost-traffic/inc/im-boost-traffic-functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/boost-traffic/inc/admin/tabs/im-boost-traffic-general.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
8 plugin tags: traffic, marketing-tool, increase-traffic, website-boost, marketing...

boost-traffic/boost-traffic.php Passed 13 tests

The main file in "Boost Traffic" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
100 characters long description:
Boost is a new way to market new websites without being bogged down by expensive marketing campaigns

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin323 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP55330278
CSS10330
JavaScript18215

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.33MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/imlogo.png15.78KB6.92KB▼ 56.13%
assets/images/boost-logo.png11.38KB4.70KB▼ 58.67%
assets/images/background-footer.png52.77KB12.75KB▼ 75.83%
assets/images/pattern.png252.88KB147.09KB▼ 41.84%