83% neptuneads-monetization

Code Review | Push Monetization

WordPress plugin Push Monetization scored83%from 54 tests.

About plugin

  • Plugin page: neptuneads-moneti...
  • Plugin version: 20181101...
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 13, 2018
  • Latest release: Dec 14, 2018
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: neptuneads (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /622 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
This plugin's installer ran successfully

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

A check of server-side resources used by Push Monetization
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.75 ▼0.50
Dashboard /wp-admin3.33 ▼0.0244.86 ▼12.91
Posts /wp-admin/edit.php3.38 ▲0.0250.08 ▲1.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.86 ▼23.31
Media Library /wp-admin/upload.php3.25 ▲0.0236.23 ▲0.64
NeptuneAds Monetization /wp-admin/options-general.php?page=neptune-monetization3.2129.15

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Push Monetization
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲11314.50 ▲0.123.58 ▲1.7440.34 ▼0.55
Dashboard /wp-admin2,210 ▲224.87 ▼0.0397.17 ▼11.0136.28 ▼8.06
Posts /wp-admin/edit.php2,072 ▼172.00 ▼0.0338.68 ▼2.0235.62 ▲0.61
Add New Post /wp-admin/post-new.php1,550 ▲818.27 ▼0.00603.74 ▲4.2359.54 ▲5.59
Media Library /wp-admin/upload.php1,386 ▲14.18 ▼0.0996.22 ▲1.3740.94 ▼4.08
NeptuneAds Monetization /wp-admin/options-general.php?page=neptune-monetization8242.0323.5824.76

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/neptuneads-monetization/neptune-monetization.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 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: revenue, ads, profit, adserving, advert...

neptuneads-monetization/neptune-monetization.php 69% from 13 tests

The main PHP script in "Push Monetization" version 20181101... is automatically included on every request by WordPress
Please take the time to fix the following:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "20181101...")
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("neptuneads-monetization.php" instead of "neptune-monetization.php")

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 plugin109 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11426105
JSON1003
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin