77% simplepress

Code Review | Simple:Press Forum

WordPress plugin Simple:Press Forum scored77%from 54 tests.

About plugin

  • Plugin page: simplepress
  • Plugin version: 6.10.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2018
  • Latest release: Nov 29, 2023
  • Number of updates: 111
  • Update frequency: every 16.7 days
  • Top authors: simplepress (71.17%)causalityventures (29.73%)

Code review

54 tests

User reviews

21 reviews

Install metrics

600+ active /31,758 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲2.36MB] [CPU: ▲31.23ms] Passed 4 tests

An overview of server-side resources used by Simple:Press Forum
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.48 ▲2.0271.43 ▲27.78
Dashboard /wp-admin5.79 ▲2.4582.09 ▲22.21
Posts /wp-admin/edit.php5.91 ▲2.5588.82 ▲39.33
Add New Post /wp-admin/post-new.php8.37 ▲2.49130.54 ▲35.61
Media Library /wp-admin/upload.php5.72 ▲2.4983.06 ▲49.90

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 495 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Simple:Press Forum
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8814.20 ▼0.071.48 ▼0.2239.01 ▼1.90
Dashboard /wp-admin2,222 ▲455.57 ▼0.0594.50 ▼5.0780.27 ▲40.22
Posts /wp-admin/edit.php2,142 ▲421.99 ▲0.0538.31 ▼2.1534.89 ▼0.53
Add New Post /wp-admin/post-new.php1,553 ▲2422.20 ▼1.03704.12 ▲41.9953.83 ▼1.07
Media Library /wp-admin/upload.php1,439 ▲394.12 ▼0.03108.59 ▲10.7877.10 ▲35.37

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 267× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/simplepress/admin/panel-integration/support/spa-integration-save.php
    • > /wp-content/plugins/simplepress/admin/panel-toolbox/forms/spa-toolbox-changelog-form.php
    • > /wp-content/plugins/simplepress/admin/panel-plugins/forms/spa-plugins-upload-form.php
    • > /wp-content/plugins/simplepress/forum/content/sp-list-view-functions.php
    • > /wp-content/plugins/simplepress/admin/panel-forums/forms/spa-forums-group-permission-form.php
    • > /wp-content/plugins/simplepress/admin/panel-users/ajax/spa-ajax-users-loader.php
    • > /wp-content/plugins/simplepress/forum/content/sp-forms.php
    • > /wp-content/plugins/simplepress/admin/panel-components/support/spa-components-prepare.php
    • > /wp-content/plugins/simplepress/admin/panel-forums/forms/spa-forums-merge-forums-form.php
    • > /wp-content/plugins/simplepress/admin/panel-integration/ajax/spa-ajax-integration-langs.php
  • 76× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant SP_PLUGIN_DIR - assumed 'SP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplepress/sp-api/sp-api-class-spcuser.php on line 45
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/simplepress/sp-startup/admin/spa-admin-class-spcpluginupgraderskin.php on line 19
    • > PHP Warning
      Use of undefined constant SPHOMESITE - assumed 'SPHOMESITE' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplepress/admin/help/troubleshooting/spa-plugin-links.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SP() in wp-content/plugins/simplepress/sp-startup/forum/sp-forum-constants.php:9
    • > PHP Warning
      Use of undefined constant SPHOMESITE - assumed 'SPHOMESITE' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplepress/admin/help/troubleshooting/spa-faq-troubleshooting.php on line 44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sp_SectionStart() in wp-content/plugins/simplepress/admin/panel-users/ajax/user-groups.php:3
    • > PHP Warning
      Use of undefined constant SPHOMESITE - assumed 'SPHOMESITE' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplepress/admin/help/troubleshooting/spa-codex-links.php on line 74
    • > PHP Warning
      Use of undefined constant SPHOMESITE - assumed 'SPHOMESITE' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplepress/admin/help/troubleshooting/spa-codex-links.php on line 80
    • > PHP Warning
      Use of undefined constant SPHOMESITE - assumed 'SPHOMESITE' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplepress/admin/help/troubleshooting/spa-faq-troubleshooting.php on line 20
    • > PHP Warning
      Use of undefined constant SPHOMESITE - assumed 'SPHOMESITE' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplepress/admin/help/troubleshooting/spa-faq-troubleshooting.php on line 26

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 86% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: These screenshots need descriptions #12, #14, #17, #2, #3, #4 in simplepress/assets to your readme.txt
You can look at the official readme.txt

simplepress/sp-control.php 77% from 13 tests

The main PHP script in "Simple:Press Forum" version 6.10.6 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("simplepress.php" instead of "sp-control.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected59,348 lines of code in 395 files:
LanguageFilesBlank linesComment linesLines of code
PHP31510,87114,40649,708
JavaScript241,0351,0096,307
CSS72582062,944
SVG4700333
JSON10033
Markdown114023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity46.26
▷ Minimum class complexity1.00
▷ Maximum class complexity215.00
Average method complexity5.07
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes47
▷ Abstract classes00.00%
▷ Concrete classes47100.00%
▷ Final classes12.13%
Methods523
▷ Static methods20.38%
▷ Public methods41479.16%
▷ Protected methods254.78%
▷ Private methods8416.06%
Functions1,040
▷ Named functions1,03999.90%
▷ Anonymous functions10.10%
Constants152
▷ Global constants152100.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
64 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
sp-startup/install/resources/objects/avatars/outline-member.png2.72KB1.23KB▼ 54.93%
sp-startup/install/resources/objects/avatars/outline-guest.png2.74KB1.25KB▼ 54.27%
admin/resources/css/images/jquery-ui/date-picker/ui-icons_004276_256x240.png4.27KB4.11KB▼ 3.78%
resources/images/question.png1.14KB1.03KB▼ 10.32%
admin/resources/images/sp_NoWrite.png1.63KB1.34KB▼ 18.23%