84% openestate-php-wrapper

Code Review | OpenEstate PHP-Wrapper

WordPress plugin OpenEstate PHP-Wrapper scored 84% from 54 tests.

About plugin

  • Plugin page: openestate-php-wr...
  • Plugin version: 0.3.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Dec 13, 2010
  • Latest release: Oct 29, 2018
  • Number of updates: 31
  • Update frequency: every 92.8 days
  • Top authors: OpenEstate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 4,972 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
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼19.47ms] Passed 4 tests

This is a short check of server-side resources used by OpenEstate PHP-Wrapper
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1032.20 ▼7.19
Dashboard /wp-admin3.41 ▲0.1043.14 ▼7.76
Posts /wp-admin/edit.php3.46 ▲0.1043.49 ▼6.26
Add New Post /wp-admin/post-new.php5.99 ▲0.1085.05 ▼56.65
Media Library /wp-admin/upload.php3.33 ▲0.1032.59 ▲3.47
OpenEstate-Wrapper /wp-admin/options-general.php?page=openestate_wrapper_setup3.3031.75

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for OpenEstate PHP-Wrapper
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.12 ▼1.181.62 ▼0.2345.66 ▼0.61
Dashboard /wp-admin2,210 ▲225.87 ▲0.01109.90 ▼9.9842.01 ▼2.92
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0440.32 ▼0.0336.43 ▲0.15
Add New Post /wp-admin/post-new.php1,517 ▲317.65 ▼0.03679.47 ▼23.5552.00 ▼10.85
Media Library /wp-admin/upload.php1,392 ▲74.21 ▲0.0798.78 ▼11.8243.51 ▼2.47
OpenEstate-Wrapper /wp-admin/options-general.php?page=openestate_wrapper_setup9182.0225.6632.23

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× 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/openestate-php-wrapper/openestate-php-wrapper.php:155

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt is a good inspiration

openestate-php-wrapper/openestate-php-wrapper.php Passed 13 tests

"OpenEstate PHP-Wrapper" version 0.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
This plugin integrates OpenEstate-PHP-Export 1.x into a WordPress blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected766 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP177119645
PO File14449121

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
openestate.png4.95KB2.91KB▼ 41.20%