84% posts-from-phpbb

Code Review | New Posts from phpBB

WordPress plugin New Posts from phpBB scored84%from 54 tests.

About plugin

  • Plugin page: posts-from-phpbb
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 3, 2023
  • Latest release: Dec 3, 2023
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: kikiatwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼10.40ms] Passed 4 tests

Analyzing server-side resources used by New Posts from phpBB
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.30 ▼4.14
Dashboard /wp-admin3.36 ▲0.0148.98 ▼14.88
Posts /wp-admin/edit.php3.41 ▲0.0549.97 ▼6.43
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.80 ▼16.13
Media Library /wp-admin/upload.php3.28 ▲0.0535.00 ▲2.83

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_posts-from-phpbb
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by New Posts from phpBB
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲1814.18 ▼0.091.69 ▼0.5238.42 ▼8.43
Dashboard /wp-admin2,195 ▲185.61 ▲0.0397.99 ▼2.3642.64 ▼4.67
Posts /wp-admin/edit.php2,097 ▼32.00 ▼0.0039.63 ▼1.5336.40 ▼2.50
Add New Post /wp-admin/post-new.php1,526 ▼023.44 ▲0.67696.71 ▲85.6252.30 ▲1.32
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.01100.73 ▼3.7541.91 ▼2.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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
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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/posts-from-phpbb/widget/class-posts-from-phpbb-widget.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 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
1 plugin tags: phpbb

posts-from-phpbb/posts-from-phpbb.php Passed 13 tests

The main PHP file in "New Posts from phpBB" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
A widget plugin that grabs your recent phpBB forum posts for you to display on your WordPress site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected176 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32359125
PO File1192351

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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