83% papernapfree-expert-reviews

Code Review | Papernap‑Free Expert Reviews.

WordPress plugin Papernap‑Free Expert Reviews. scored 83% from 54 tests.

About plugin

  • Plugin page: papernapfree-expe...
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2020
  • Latest release: Oct 19, 2020
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: papernapadmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 376 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.32ms] Passed 4 tests

An overview of server-side resources used by Papernap‑Free Expert Reviews.
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1938.07 ▼0.82
Dashboard /wp-admin3.35 ▲0.0551.64 ▲2.57
Posts /wp-admin/edit.php3.40 ▲0.0544.84 ▼8.21
Add New Post /wp-admin/post-new.php5.93 ▲0.0588.41 ▼12.32
Media Library /wp-admin/upload.php3.28 ▲0.0536.72 ▲0.09

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Papernap‑Free Expert Reviews.
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲17213.87 ▼0.5011.69 ▲9.9240.85 ▼0.28
Dashboard /wp-admin2,203 ▲154.90 ▼0.01102.60 ▼7.7539.80 ▼2.85
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0336.07 ▼2.2837.18 ▲6.29
Add New Post /wp-admin/post-new.php1,537 ▲1223.11 ▼0.13622.06 ▼18.3686.22 ▲20.27
Media Library /wp-admin/upload.php1,391 ▲124.29 ▲0.02100.59 ▼1.7841.43 ▼6.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Almost there! Just 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/papernapfree-expert-reviews/admin_page_dash.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/papernapfree-expert-reviews/papernap.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

papernapfree-expert-reviews/papernap.php 85% from 13 tests

Analyzing the main PHP file in "Papernap‑Free Expert Reviews." version 1.2
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("papernapfree-expert-reviews.php" instead of "papernap.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin8,406 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS73611253,114
SVG1002,671
JavaScript7852712,610
PHP231111

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin