84% pr-graumailing

Code Review | PR Graumailing

WordPress plugin PR Graumailing scored84%from 54 tests.

About plugin

  • Plugin page: pr-graumailing
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8
  • WordPress version: 6.3.1
  • First release: Dec 25, 2013
  • Latest release: Apr 2, 2014
  • Number of updates: 19
  • Update frequency: every 5.2 days
  • Top authors: pauloiankoski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,432 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.39ms] Passed 4 tests

Analyzing server-side resources used by PR Graumailing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.27 ▼6.13
Dashboard /wp-admin3.33 ▲0.0348.10 ▼4.58
Posts /wp-admin/edit.php3.38 ▲0.0350.75 ▼1.02
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.84 ▼13.83
Media Library /wp-admin/upload.php3.25 ▲0.0339.76 ▲1.36
PR Graumailing /wp-admin/edit.php?post_type=prgraumailing3.3039.29

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

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

Browser metrics Passed 4 tests

Checking browser requirements for PR Graumailing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5713.27 ▼1.471.60 ▼0.5246.95 ▲2.09
Dashboard /wp-admin2,224 ▲215.88 ▲1.0099.14 ▼14.9841.32 ▼2.21
Posts /wp-admin/edit.php2,082 ▼182.02 ▲0.0036.99 ▲0.7733.49 ▼2.44
Add New Post /wp-admin/post-new.php1,548 ▼623.16 ▲5.03681.60 ▲39.8254.92 ▼29.53
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.05105.20 ▼7.6444.83 ▼6.00
PR Graumailing /wp-admin/edit.php?post_type=prgraumailing1,0681.9935.4329.18

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pr-graumailing/pr-admin-functions.php:207
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pr-graumailing/pr-front-functions.php:77
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pr-graumailing/pr-admin-functions.php:207

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: contact form, graumailing

pr-graumailing/pr-graumailing.php Passed 13 tests

Analyzing the main PHP file in "PR Graumailing" version 1.2.3
47 characters long description:
Integração do Graumailing com Contact Form 7.

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
No dangerous file extensions were detected371 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33019371

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin