79% revpress

Code Review | RevPress - Easily add Subscribe with Google from Google's Reader Revenue Manager to your site!

WordPress plugin RevPress - Easily add Subscribe with Google from Google's Reader Revenue Manager to your site! scored79%from 54 tests.

About plugin

  • Plugin page: revpress
  • Plugin version: 1.1.4
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 4, 2023
  • Latest release: Apr 1, 2023
  • Number of updates: 21
  • Update frequency: every 1.3 days
  • Top authors: christopheran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /170 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.23ms] Passed 4 tests

Server-side resources used by RevPress - Easily add Subscribe with Google from Google's Reader Revenue Manager to your site!
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0053.34 ▲18.97
Dashboard /wp-admin3.31 ▲0.0048.47 ▲3.12
Posts /wp-admin/edit.php3.36 ▲0.0051.83 ▲7.22
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.67 ▼4.41
Media Library /wp-admin/upload.php3.23 ▲0.0030.87 ▼6.85

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for RevPress - Easily add Subscribe with Google from Google's Reader Revenue Manager to your site!
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.76 ▲0.391.95 ▲0.2545.36 ▲5.80
Dashboard /wp-admin2,203 ▲115.79 ▲0.8498.25 ▼20.8738.94 ▼8.15
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0635.30 ▼3.3344.05 ▲10.25
Add New Post /wp-admin/post-new.php1,540 ▲2620.48 ▼3.09695.30 ▼30.9848.19 ▼23.15
Media Library /wp-admin/upload.php1,385 ▲34.25 ▼0.03141.31 ▲11.2061.18 ▲4.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/revpress/views/inc-page-footer.php
    • > /wp-content/plugins/revpress/views/inc-sidebar.php
    • > /wp-content/plugins/revpress/views/page-guide.php
    • > /wp-content/plugins/revpress/views/snippet-template.php
  • 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/revpress/revpress.php:21
    • > 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/revpress/revpress.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/revpress/views/page-settings.php:3
    • > PHP Warning
      include(): Failed opening 'RPP_PLUGIN_DIRviews/inc-page-footer.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/revpress/views/page-guide.php on line 126
    • > PHP Warning
      Use of undefined constant RPP_PLUGIN_DIR - assumed 'RPP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/revpress/views/page-settings.php on line 1
    • > PHP Warning
      Use of undefined constant RPP_PLUGIN_DIR - assumed 'RPP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/revpress/views/page-guide.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/revpress/views/inc-page-header.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/revpress/views/inc-snippet-form.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/revpress/views/skip-cache.php:2
    • > PHP Warning
      include(RPP_PLUGIN_DIRviews/inc-page-header.php): failed to open stream: No such file or directory in wp-content/plugins/revpress/views/page-settings.php on line 1

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: subscribe with google, google, reader revenue manager, publisher, center...

revpress/revpress.php Passed 13 tests

The principal PHP file in "RevPress - Easily add Subscribe with Google from Google's Reader Revenue Manager to your site!" v. 1.1.4 is loaded by WordPress automatically on each request
79 characters long description:
Provides management and makes it easy to add Subscribe with Google to your site

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
No dangerous file extensions were detected2,810 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP162322321,111
SVG2001,008
CSS11112689
JavaScript2022

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity24.25
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods2095.24%
▷ Protected methods00.00%
▷ Private methods14.76%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants981.82%
▷ Class constants218.18%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin